For standalone Swing apps, the Swing event-handling thread is a
non-daemon thread so it doesn't shut down until you call System.exit.
There's a special option on JFrame to cause a VM shutdown if you click
the X, but that isn't the default behavior either.
Thanks,
Aaron
On 9/8/06, David Jencks <[EMAIL PROTECTED]> wrote:
I fiddled around a bit and got the daytrader streamer app client to
work on trunk (except I might have broker the update timer).
However, to do this I had to add code so the main method doesn't
return until the app exits: otherwise it returns and our app client
container shuts down the kernel.
How do standalone swing apps work? Do the main methods return more
or less immediately or do they block somehow or get used somehow
until the app is ready to close?
If they return immediately can anyone suggest a way to detect that
the app has exited so we can stop the kernel and exit the container?
hoping someone somewhere has written a swing app :-)
david jencks