Quitting an Applet II
Quitting an Applet II
- Subject: Quitting an Applet II
- From: Carl West <email@hidden>
- Date: Mon, 04 Dec 2000 13:40:44 -0500
- Organization: VPG Integrated Media
Thanks for all the input on quitting a classic applet. I learned a lot.
Yesterday I wrote myself an alarm that on run pops up a dialog, I type
in a time, the time gets saved in a global and from then on, an 'on
idle' handler checks if that time is past and kicks off a repeat loop of
saying something and popping up a dialog with an "OK. I'm awake" button
giving up after 1.
The problem I have is one (or both) of these two things:
If I save it as a classic applet it quits as soon as I close the
type-in-the-time dialog. I don't know how to keep it open except with a
repeat loop instead of the 'on idle' handler.
If I save it as a stay-open applet I can't quit it from within (clicking
on the "OK. I'm awake" button) , I have to 'cmd-q'.
How do I either keep a classic applet open for a long time without
hogging the cpu, or close a stay-open applet from within?
--
Carl West email@hidden
617.262.8830 x246
I have no superfluous leisure; my stay must be
stolen out of other affairs; but I will attend you awhile.
- Isabella, Measure for Measure, Act 3 Scene 1