windowClosing / windowClosed when logging off or shutting down Windows...
From: Will Atkinson (LemonSmasher_at_hotmail.com)
Date: 11/29/03
- Next message: Chris Goedde: "Need help with layered animation in Swing"
- Previous message: Lee Weiner: "Re: Writing a ListCellRenderer"
- Next in thread: Andrew Thompson: "Re: windowClosing / windowClosed when logging off or shutting down Windows..."
- Reply: Andrew Thompson: "Re: windowClosing / windowClosed when logging off or shutting down Windows..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Nov 2003 13:31:10 -0800
Hi All,
Sorry to post a 'Windows specific' question, although it may well
apply to other operating systems.
I have written a program that times tasks, and it can quite easily be
in the process of timing a task when the user logs off or shuts down
Windows. Currently, it persists out a list of the timed tasks when
windowClosing / windowClosed occurs, (i.e. when the user closes the
program explicitly) but neither of these occur in the case of a log
off / shut down.
Is there any way of determining that the JVM is in the process of
terminating from withing a Java application? I'm guessing that using
'finalize' in my main class isn't going to help, as I know finalize
doesn't necessarily get called.
I'm sure there must be a fairly simple solution to the problem of
users losing timing information when closing by a log off / shutdown -
but I can't find it!
Any help much appreciated!
LemonSmasher.
- Next message: Chris Goedde: "Need help with layered animation in Swing"
- Previous message: Lee Weiner: "Re: Writing a ListCellRenderer"
- Next in thread: Andrew Thompson: "Re: windowClosing / windowClosed when logging off or shutting down Windows..."
- Reply: Andrew Thompson: "Re: windowClosing / windowClosed when logging off or shutting down Windows..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|