J
Java and Swing
I have a Java app that is compiled into a JAR file. I then execute the
program from the command line (on windows xp) like this:
c:> java -jar MyApp.jar
.....works fine. Then at some point I want to quit the app by pressing
Ctrl + C....but it doesn't shut down. Now, the application has several
threads running....which have a "stopThread" method which I need to
call, but I need to know when to call them. i.e. how do I know the app
is trying to shutdown so that I can kill the threads?
thanks
program from the command line (on windows xp) like this:
c:> java -jar MyApp.jar
.....works fine. Then at some point I want to quit the app by pressing
Ctrl + C....but it doesn't shut down. Now, the application has several
threads running....which have a "stopThread" method which I need to
call, but I need to know when to call them. i.e. how do I know the app
is trying to shutdown so that I can kill the threads?
thanks