Remove « Component « Java Swing Q&A





1. removing components    coderanch.com

2. Removing component    coderanch.com

Hello, Working with AWT, Have a panel containing some other panels, When I create it I use a .add(sub-panel) and "forget" the sub-panel. On later stage I would like to replace the sup-panel with some other sub-panel. The problem is that I don't know what to write in the Remove of the main panel... I've heard about re-creating the entire main ...

3. removing and adding SWING components    java-forums.org

Hi, I have this: "http://pastebin.com/NidcAP6R" simple method, which determines what myPanel contains. In the case when only ContactListPanel should be in myPanel everything works fine. But when unknownContactView and contactListPane should be in myPanel then a problem occure....In myPanel I can not see contactListPanel(I can see only his TitledBorder).... for clarification: ContactListPanel extends Class1 and Class1 extends JScrollPane UnknowContactPanel extends JPanel ...