• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

TabbedPanere opening major problem

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic