• Post Reply Bookmark Topic Watch Topic
  • New Topic

Whats the alternative of SwingUtilites (update) in applet - urgent!!

San Sharma
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friend,
I have an applet which has a panel added to it. There is a button.
On clicking the button i want the first panel to be removed and the new one to be added. In the action performed method of button, firstPanel.setVisible(false) works fine but when i try to do this.add(secondPanel); nothing comes up.. even when i call repaint after this.
In swing calling SwingUtilities.updateComponentTreeUI(this) makes work.
Please help.
Thanks a lot in advance.
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!