[1746] in java-interest
Re: main() in beta
daemon@ATHENA.MIT.EDU (Jim Graham)
Fri Sep 15 13:41:09 1995
Date: Thu, 14 Sep 1995 13:17:40 -0700
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
To: java-interest@java.Eng.Sun.COM, jfine@umich.edu
> I've been looking at the new JDK applets which embed buttons, such as
> CardTest.java and ArcTest.java, and I was wondering what is calling
> main() in these applets. I looked at java.applet.Applet and all its
> superclasses, but I couldn't find any reference to main().
Those classes are designed to work either as Applets or standalone test
programs. You can invoke them as standalone programs using "java ArcTest"
for instance.
This was done to verify that there is now very little difference between
what an applet could do and what a standalone application can do in terms
of using the AWT. Note that there are still a lot of things that don't
work unless you are running under the context of the appletviewer - most
notably getImage(), and any other Applet call that works by relaying the
work to the AppletContext. Simple java.awt UI objects should be useable
whether or not you are in an AppletViewer, though.
(It also shows that some of these applets started out their lives as
standalone test programs for the new awt.)
...jim
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com