Hi. I have an app I'm
testing before sending it out to the users.
I will run the app, and close
out of it, by either pressing the exit button I have added, or clicking
on the X in the JFrame. Usually when I do this, the DOS prompt will display "Press any key to continue" so I know it has closed out. Every once in a while, this message doesn't appear on the DOS prompt. When I look in task manager, the java.exe still shows as a process.
This is the class I have that is supposed to close out the app,
I have the above window listener added to the JFrame.
Here is the code that runs when the exit button is pressed...
Why doesn't the app always close out? I would say about 90% of the time,
it closes OK, not sure what is happening to cause this.
Any ideas?