Results 1 to 2 of 2
  1. #1
    Athlon* is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Red face removing and adding SWING components

    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

    Please someone Help,
    Thanks a lot

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: removing and adding SWING components

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Adding and removing components from a GridBagLayout
    By peterhabe in forum New To Java
    Replies: 4
    Last Post: 09-19-2010, 10:13 PM
  2. Adding \ removing items from Jlist
    By Desperado in forum AWT / Swing
    Replies: 10
    Last Post: 12-17-2009, 12:48 PM
  3. Adding/removing nodes to tree under TreeViewer
    By Rodrigo Braz in forum SWT / JFace
    Replies: 0
    Last Post: 04-20-2009, 01:02 AM
  4. Adding and removing panels dynamically
    By kbyrne in forum AWT / Swing
    Replies: 1
    Last Post: 04-12-2008, 08:28 PM
  5. Removing components from JPanel
    By Echilon in forum New To Java
    Replies: 0
    Last Post: 12-30-2007, 04:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •