Hi, i start an application by javaTest In Test.java main() i invoke the constructor which in turn displays a splashscreen and a dialog. if the user hits Quit on the dialogue, i dispose the splash screen and return from the constructor which also causes main to return. But in the task manager java.exe is still running. Also the console window thats started after exeecuting java Test is still there. Can you please tell me whats going wrong. Thanks, Vivek
John Dale
Ranch Hand
Joined: Feb 22, 2001
Posts: 399
posted
0
When you display window using AWT (or Swing), one or more (shared) threads are started to dispatch events, etc. These don't go away when you dispose() of the window(s). That's why Swing applications usually stop by exiting the virtual machine using System.exit().
vicky bawge
Ranch Hand
Joined: Sep 04, 2001
Posts: 34
posted
0
Hi John, Yeah that works. Thanks a lot, Vivek
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.