File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes adding and removing Swing Component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "adding and removing Swing Component" Watch "adding and removing Swing Component" New topic

adding and removing Swing Component

Pavel Levap

Joined: Dec 06, 2011
Posts: 1
I have this simple method: "" which determines myPanel content. In the case when myPanel should contains only ContactListPanel It works fine. But in the second case when myPanel should contains contactListPanel and unknowContactListView the problem occure- I can not see ContactListPanel in myPanel(I can se only ContactListPanel's TitledBorder....)
for clarificaton:
ContactListPanel extends Class1 and Class1 extends JScrollPane
UnknownContactPanel extneds JPanel.

Does anyone know how tro solve my problem, please?
Thanks in advance

Darryl Burke

Joined: May 03, 2008
Posts: 5115

Pavel, welcome to the Ranch! We don't have too many rules here, but we do ask the you BeForthrightWhenCrossPostingToOtherSites

luck, db
There are no new questions, but there may be new answers.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2452
Post your SSCCE that demonstrates the problem.
I agree. Here's the link:
subject: adding and removing Swing Component
jQuery in Action, 3rd edition