how to pass the info to another applet?
Hmm...I am having 3 applet,all save in different class.
and i use a html with frame to split it into 3 part,so,each of the part show one of the applet.
I wan to make it like i click a button on Applet A,then applet B will come out another button.
Is it possible to do that?
OR save the info on the html and the other 2 applet can receive it...
Thanks.
Re: how to pass the info to another applet?
Not sure what security will do with this.
Have you tried any of the methods in the ApplecContext class?
Re: how to pass the info to another applet?
no i didn't try any method yet.
Re: how to pass the info to another applet?
Try some of them and see what happens.
Re: how to pass the info to another applet?
Hmm...now bacause there is some problem on my computer so i try it using my friends one...but it give me this in result:
Quote:
Warning: Can't read AppletViewer properties file: C:\Users\<username>
\.hotjava\properties Using defaults.
java.lang.UnsupportedClassVersionError: label : Unsupported major.minor version
51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader. java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java :615)
at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:14
1)
at sun.applet.AppletClassLoader.findClass(AppletClass Loader.java:209)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
at sun.applet.AppletClassLoader.loadClass(AppletClass Loader.java:144)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 47)
at sun.applet.AppletClassLoader.loadCode(AppletClassL oader.java:654)
at sun.applet.AppletPanel.createApplet(AppletPanel.ja va:785)
at sun.applet.AppletPanel.runLoader(AppletPanel.java: 714)
at sun.applet.AppletPanel.run(AppletPanel.java:368)
at java.lang.Thread.run(Thread.java:662)
what is this? and how should i fix this problem?
I had download and installed jdk1.6.0_29 on my friend's computer already!
I think this one is much more serious problem...
Re: how to pass the info to another applet?
Quote:
UnsupportedClassVersionError: label : Unsupported major.minor version 51.0
The code was compiled with a younger version of java (1.7). The appletviewer is from an older version (1.6?)
Recompile the code with the same version of java as the appletviewer you are using.
Re: how to pass the info to another applet?
oh,it work!Thanks~!
Beside that i think there is nothing can use in appletContext...getAudio,getVideo...but nothing is about getting a string...i only need a string...
Re: how to pass the info to another applet?
Get a reference to the other Applet object and call one of its methods.