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

How to re-initialize wnen going back home  RSS feed

 
Gary Frick
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure how to adequately state my problem, but... The initial window allows a user to setup the options, select values from lists and then perform a login. After traversing to succeeding frames relating to the application, the user may wish to start all over. This means tearing down a session, establishing new options and selections. I used setVisible() method in Navigating through these JFrames, including the home JFrame. But if the user chooses to go back to the home page, I want to re-enter it as though it were the first time with all buttons unselected, lists cleared and connections closed. What is the best way of doing this?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!