BTW very cool trick to try with IE 4.0
>From your Applet create a separate thread that runs forever. In that
thread open a Frame, iconify it, and use that Frame to open a Window.
You can now use that Window to paint anywhere on the desktop. Put
something creative in there.
Now, make your thread paint something when the Applet is stopped, and
make sure to catch the ThreadDeath exception in your run() method, so it
never dies.
Open up IE 4.0, load the page with the Applet, and close IE 4.0.
You'll end up with a thread that paints on your desktop and one you
can't kill easily.
arkin
Jean-Baptiste Nizet wrote:
>
> Assaf Arkin wrote:
>
> > java.lang.Thread is part of the standard language, but is not available
> > in all Java 1.1/1.2 run times. The following is a list of run times that
> > do not support java.lang.Thread:
> >
> > * Applets
>
> Really?
> awt uses threads, and a big part of the applets are coded like this
>
> public class MyApplet extends Applet implements Runnable {
> public void init() {
> // ...
> Thread t = new Thread(this);
> t.start();
> }
>
> public void run() {
> // perform nice animation
> }
> }
>
> Am I missing something?
>
> JB.
>
> >
> > * EJB
> > * Servlet
> > * Java embedded in other containers (like DB)
> >
> > arkin
> >
> > Laird Nelson wrote:
> > >
> > > Eric Williams wrote:
> > > > And the EJB specification writers had to enable vendors to offer
> > > > advanced
> > > > products based on the specification (eg, EJB implemented *in* a
> > > > database, or a
> > > > multi-VM shared-memory approach, etc.)... some of which are incompatible
> > > > with
> > > > threads or file I/O.
> > >
> > > Something here bothered me and I just got it: if java.lang.Thread is
> > > part of the core Java language (as implemented by every VM, including
> > > Oracle's "advanced product" in-database VM), then how could you have an
> > > "advanced product" that is incompatible with it?
> > >
> > > Cheers,
> > > Laird
> > >
> > > ===========================================================================
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > > of the message "signoff EJB-INTEREST". For general help, send email to
> > > [EMAIL PROTECTED] and include in the body of the message "help".
> >
> > ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> > of the message "signoff EJB-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
> --
> Jean-Baptiste Nizet
> [EMAIL PROTECTED]
>
> R&D Engineer, S1 Belgium
> Excelsiorlaan 87
> B-1930 Zaventem
> +32 2 714 45 42
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
----------------------------------------------------------------------
Assaf Arkin www.exoffice.com
CTO, Exoffice Technologies, Inc. www.exolab.org
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".