• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
San Sharma
Greenhorn
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.
San
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic