Results 1 to 3 of 3

Thread: tabbed Pane .

  1. #1
    programmer_007's Avatar
    programmer_007 is offline Senior Member
    Join Date
    Aug 2009
    Posts
    125
    Rep Power
    0

    Lightbulb tabbed Pane .

    1>one menubar at top with menuitems .
    2>below that is a tabbedpane .that displays different panels as clicked on different menuitems in menubar in 1. ok .
    3> some menuitems in menubar opens up 2 panels on tabbedpane and some 1 or 3 panels on tabbedpane at a time .
    PROBLEM is i want to remove or dispose all the previously opened up panels in tabbedPane wenever i choose any other menuitem one after another..

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Just replace the whole content pane of the frame by setting a new opaque JComponent.

  3. #3
    programmer_007's Avatar
    programmer_007 is offline Senior Member
    Join Date
    Aug 2009
    Posts
    125
    Rep Power
    0

    Default

    okies .. thanks..
    but if i remove the contentPne completely .. will it remove the menuBar also .. well i dont want that ... lets see .. m trying tht out ..:)

Similar Threads

  1. JTree and Tabbed Pane
    By paluee in forum AWT / Swing
    Replies: 1
    Last Post: 03-30-2009, 07:03 AM
  2. How to add a jbutton to tabbed pane headder?
    By Melki in forum AWT / Swing
    Replies: 12
    Last Post: 10-15-2008, 09:16 PM
  3. Tabbed pane using struts 2.x......?
    By prabhurangan in forum Web Frameworks
    Replies: 1
    Last Post: 07-19-2008, 07:48 AM
  4. Creating a tabbed display with a single tab
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-07-2008, 05:44 PM
  5. AWT can we make a Tabbed container?
    By Panchitopro in forum AWT / Swing
    Replies: 0
    Last Post: 05-15-2008, 11:31 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
  •