cricketeer
MIS
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!
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!