Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes  JTabbed Pane: How to hide the frame containing the tabbed panes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark " JTabbed Pane: How to hide the frame containing the tabbed panes" Watch " JTabbed Pane: How to hide the frame containing the tabbed panes" New topic
Author

JTabbed Pane: How to hide the frame containing the tabbed panes

sanjay ramaswamy
Greenhorn

Joined: Feb 11, 2009
Posts: 29
i am working in a project where i used a tabbed pane which has many tabs in it obviously . my doubt is i dont want to hide one of the panes but the entire frame containing the tabs . i used the setVisible(false) in the actionPerformed() of a submit button in the last tab of the JTabbedPane after which i want to launch a new frame . this way it hides the tabs in the frame and not the frame itself . so once i launch a new frame...i find this frame which contained the tabs also visible but without the tabs in it .so it means this.setVisible(false) that i did in the actionPerformed() does not completely hide the frame which is of my interest . please help urgent .


"People who are unable to motivate themselves must be content with mediocrity , no matter how impressive their other talents " -Andrew Carnegie
sanjay ramaswamy
Greenhorn

Joined: Feb 11, 2009
Posts: 29
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

Sanjay Jayaram Rao wrote:please help urgent .

Please Ease Up


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
sanjay ramaswamy
Greenhorn

Joined: Feb 11, 2009
Posts: 29
I appreciate your suggestion , will certainly incorporate it henceforth in the future . Thanks for the reply . I have solved the problem with a very crude way by storing the frame that i create in main() and then use the frame.setVisible(false) .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTabbed Pane: How to hide the frame containing the tabbed panes
 
Similar Threads
Adding button to a tabbed pane
Mnemonics and focusable components
Design question regarding JTabbedPane
Problems using JTree and JTabbedPane
close JTabbedPane