This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "adding and removing Swing Component" Watch "adding and removing Swing Component" New topic
Author

adding and removing Swing Component

Pavel Levap
Greenhorn

Joined: Dec 06, 2011
Posts: 1
Hi,
I have this simple method: "http://pastebin.com/NidcAP6R" 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
Bartender

Joined: May 03, 2008
Posts: 5038
    
  10

Pavel, welcome to the Ranch! We don't have too many rules here, but we do ask the you BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/awt-swing/52235-removing-adding-swing-components.html


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

Joined: Jun 13, 2009
Posts: 2381
    
    8
Post your SSCCE that demonstrates the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding and removing Swing Component
 
It's not a secret anymore!