Richard Hall wrote:
> 
> I haven't quite figured out what keeps an app from exiting.  It seems that
> if you don't put a return; at the end of the main() method, it will sit
> idly.  Maybe someone else can give a definitive answer.
> 

Actually, I think that a Java app will only exit if all of the threads finish.
This means that if you start up GUI components that merely letting the main
method run its course won't exit the program because the event handler thread is
still running. You need to use something like System.exit(0); to force an exit
in that case.

-- 
B. Scott Boding          |  "Woah! Is my hair out?"
FCI Communications       |     Hades, Lord of the Dead
(408) 947-1014           |       from Disney's Hercules

Reply via email to