I have an JApplet which uses an helper class to create an JPanel. I need to show the alert box using JSObject. How can I get the window reference in the helper class. I tried the following in the helper class but got error. Thanks
My code contains Capital M (MyApplet). sorry, I did not type the code properly. The error message is - netscape.javascript.JSException JSObject.getWindow(UnKnown Source)
You wrote : MyApplet a = new MyApplet(); JSObject.getWindow(applet); Try this MyApplet a = new MyApplet(); JSObject.getWindow(a); I think you applet refernce was wrong. Regards,