removing and adding SWING components
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)....
ContactListPanel extends Class1 and Class1 extends JScrollPane
UnknowContactPanel extends JPanel
Please someone Help,
Thanks a lot
Re: removing and adding SWING components