[4342] in java-interest

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

AppletContext Broken in Netscape?

daemon@ATHENA.MIT.EDU (David Strauss)
Tue Dec 19 09:07:31 1995

To: java-interest@java.sun.com
From: dstrauss@panix.com (David Strauss)
Cc: dstrauss@lehman.com
Date: Tue, 19 Dec 95 07:18:59 

I'm trying to use AppletContext to do inter-applet communication.
Basically I have two applets.  One is a timer. The other is just
two buttons.  The button applet initially does a getAppletContext
and then calls getApplet to get the timer applet. Then one button 
will start the  timer when pushed and the other will
stop the timer when pushed.  This works well in AppletViewer, so
I know I'm doing it right.
But it doesn't work in Netscape 2.0 Beta 3.  Somewhere along the
line I'm getting a Null Pointer Exception when I try running it
in Netscape.  I can't tell whether getAppletContext is returning
null, getApplet is returning null, or something else, since the Netscape
Java console won't tell me where it's happening and doesn't 
want to output any traces I put in.  

I assume getAppletContext is broken in Netscape.  Does anybody
know more about this?  What other ways are there to do inter-applet
communication that might work in Netscape?


David Strauss
dstrauss@panix.com
dstrauss@lehman.com

-
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