aspose file tools
The moose likes Applets and the fly likes Whats the alternative of SwingUtilites (update) in applet - urgent!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Whats the alternative of SwingUtilites (update) in applet - urgent!!" Watch "Whats the alternative of SwingUtilites (update) in applet - urgent!!" New topic
Author

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

San Sharma
Greenhorn

Joined: May 21, 2001
Posts: 6
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Whats the alternative of SwingUtilites (update) in applet - urgent!!
 
Similar Threads
Problem laying out panels in an Applet
Question from JExam
Problem about adding component to Panel
why do this canvas is covering the entire area of the applet?
listening to disposed child components