[3978] in java-interest
Re: Applets running applets
daemon@ATHENA.MIT.EDU (Pat Niemeyer)
Wed Dec 6 05:40:11 1995
Date: Wed, 6 Dec 1995 02:50:18 -0600 (CST)
From: Pat Niemeyer <pat@icon-stl.net>
To: Gregg Helt <gregg@fruitfly.berkeley.edu>
cc: java-interest@java.sun.com
In-Reply-To: <Pine.SUN.3.91.951205184803.4439H-100000@fruitfly.berkeley.edu>
On Tue, 5 Dec 1995, Gregg Helt wrote:
> Can applets easily run other applets?
>
> public
> class TestAppletFrame extends Applet {
> public TestAppletFrame() {
> Frame f = new Frame("appletframe");
> Applet_class app = new Applet_class();
> app.init();
> app.start();
> f.add(app);
> f.resize(300,300);
> f.show();
> }
> }
>
> where Applet_class is the applet to be displayed in the frame.
> I'm gettin java.lang.NullPointerException errors at run-time though. Am I
This will work for some Applets, but not for those which use resources
provided by the viewer or browser environment. (such as loading images,
sounds, parameters, etc.)
See java.applet.AppletContext and java.applet.AppletStub.
Pat
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com