• Post Reply Bookmark Topic Watch Topic
  • New Topic

TabbedPanere opening major problem  RSS feed

 
vinaya kumar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!