aspose file tools
The moose likes Swing / AWT / SWT and the fly likes TabbedPanere opening  major problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "TabbedPanere opening  major problem" Watch "TabbedPanere opening  major problem" New topic
Author

TabbedPanere opening major problem

vinaya kumar
Ranch Hand

Joined: Jan 20, 2002
Posts: 70
I have a problem with tabed Pane.
My JTabbedPane had two panes
with each pane having a panel and a button in
it.
I have this JtabbedPane in a JDialog
Now my frame i press a button and
invoke this JDialog
then when i close this JDialog
i remove all the pane of tabbedPAne
,now if i press again the button in my frame
i should display back the JDialog
with tabbedPane.
so always before displaying i add the tabs.
Now when i reopen for the second time
my problem is tab 1 will not display anything
,if change tab and come back to 1,
it works properly.
after i remove i said tab.revalidate(),repaint
and after i add i say the same.
Then also reopening i have this major problem
what is the solution to his
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

I am curious as to why you are removing the panals from the the tabs when you close the JDialog, however, without seeing the code you are using to do this function, it is hard to say what the problem is. Could you post some of your code?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TabbedPanere opening major problem
 
Similar Threads
How to use getModel() with JTabbedPane ?
2 dimensional JTabbedPane
Using JPanel to create JTabbedPane
Focus: cant find the relevant method
JTabPane Problem