Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Clearing GUI panels...  RSS feed

 
Dan Silva
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm creating an address book, and want start at one page, then clear the panel to accept JTextField's, And then go back to the previous intro panel. I figured the best way to do this is to clear the panel within the actionListener. Someone tell me if there's a better way, or what methods I would use to do this. Thanks.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Someone tell me if there's a better way

if you're going forwards and backwards, add each panel to a CardLayout panel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!