This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

method to restart an app?

 
Matt Wilcko
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to have a button in my app that will start the application over.. is there is a method or simply way to do this?
Thanks,
Matt
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no built-in "restart routine".
Your action listener for the reset button should probably reset the appropriate variables to some initial state, and reset any GUI to some initial state.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Java program started by a batch file. When the Java program ends, the batch file looks for an update.bat. If update.bat exists, we run it, erase it and restart the Java program. Otherwise we exit. Would something like that work for you?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic