• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

adding and removing Swing Component

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post your SSCCE that demonstrates the problem.
reply
    Bookmark Topic Watch Topic
  • New Topic