Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing the content pane

 
Ryan Maxwell
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to clear the content pane and then add all new componetns to it... Using the contentPane.removeAll() method, I've cleared the screen, but nothing, not even repainting, makes the new components visible... If anyone could help, I'd really appreciate it...
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a CardLayout. Way easier than trying to manage the invalidation/validation of components.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic