Whats the alternative of SwingUtilites (update) in applet - urgent!!
posted 16 years ago
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