[3231] in java-interest

home help back first fref pref prev next nref lref last post

Re: java.awt.applet and standalone apps

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Fri Nov 3 21:16:28 1995

Date: Fri, 3 Nov 1995 15:52:50 -0800
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: jonathan@athenanow.com
Cc: java-interest@java.Eng.Sun.COM


Hi Jonathan,

> I'm not too clear about how Applet and its descendants can be used in a
> stand-alone Java application.  (I've discovered that creating an instance of
> Applet in a stand-alone app doesn't cause "stub" to be set to anything
> valid, causing some of Applet's methods to fail.)

It is not our intention that applets can be directly used in Java
applications in this version of the JDK. We may add additional
support for this feature later.

> Am I correct in saying that "applet services" (getImage, MediaTracker, etc.)
> are not available in stand-alone apps?  

You can do all these, but you have to roll your own...

> Is it possible to build an applet
> stub that can be used in the absence of a browser?

Yes, you can. The appletviewer is essentially such a program.
You'd have to implement all the security policies though, or
you could use the appletviewer's security class.

Have fun,

	Arthur van Hoff
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post