geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder" <>
Subject Re: How do swing apps work?
Date Sat, 09 Sep 2006 00:39:15 GMT
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.


On 9/8/06, David Jencks <> 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

View raw message