posted 21 years ago
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