Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inter-Applet communication using getApplet()

Status
Not open for further replies.
Nov 15, 2001
5
US
I keep getting a nullPointer exception when trying to get two applets to communicate. I am using a statement like the following, which I found in a manual:

Applet clock = getAppletContext().getApplet("theClock");

The manual said you have to give the applet a name in your html using the name attritube of the <APPLET> tag. In the example above what is the difference between 'clock' and 'theClock'? Which is the compiled class name of the applet you are trying to read from and which is what you put in the name attribute of the html? If someone could show me several lines of code from two example applets, I'd appreciate it. It's really hard to find fully explained examples.
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top