Hiii,
hab da bisschen getestet aber es haut einfach nicht hin. Mein Compiler zeigt immer
hier ein Quelltext Ausschnittchen: wär net wenn mal wer reinschauen könnte
bin dankbar für jede Hilfe
hab da bisschen getestet aber es haut einfach nicht hin. Mein Compiler zeigt immer
Code:
D:\Dokumente und Einstellungen\Ute\JAVA\Test\src\Fahr_mitJS.java:162: cannot find symbol
symbol : method setValue(int)
location: class java.applet.Applet
document.call(applet2.setValue(1));
1 error
hier ein Quelltext Ausschnittchen: wär net wenn mal wer reinschauen könnte
Code:
JSObject document;
JSObject applets;
Applet applet2;
public void init() {
try
{JSObject jsroot = JSObject.getWindow(this); //doppelt hält ja bekanntlich besser ;-)
JSObject document = (JSObject) jsroot.getMember("document");
JSObject applets = (JSObject) document.getMember("applets");
Applet applet2 = (Applet) applets.getSlot(2); //2.eingebundenes Applet auf html Seite
Applet applet3 = (Applet) applets.getSlot(3); //3.
Applet applet4 = (Applet) applets.getSlot(4); //4. ...
Applet applet5 = (Applet) applets.getSlot(5);
Applet applet6 = (Applet) applets.getSlot(6);
}catch(Exception e) {
try{
}catch(Error err){
//fängt alle Fehler und Exceptions ab
}
}
}
public void actionPerformed(ActionEvent e){
if (e.getSource() == EG_Schalter_aussen) {
try
{//document.applet2.setValue(1); //Put_aussen_EG
document.call(applet2.setValue(1));
} catch(Exception ex){}
repaint();
}
}
bin dankbar für jede Hilfe