>    I'm usign Swing 1.0.2 and Communicator 4.05, and when I load any applet
> that uses some Swing class, I have the next message:
> 
> java.lang.NoSuchMethodError: java.awt.Component: method enableEvent(J)V
> not found
>   at com.sun.java.swing.JComponent<init>(JComponent.java:130)
>   at com.sun.java.swing.JRootPane.<init<(JRootPane.java:182)
>   at com.sun.java.swing.JApplet.createRootPane(JApplet.java:133)
> * at com.sun.java.swing.JApplet.<init>(JApplet.java:113)
>   at SwingingApplet.<init>(SwingingApplet.java:27)
>   at netscape.applet.DerivedAppletFrame.run(DerivedAppletFrame.java)
>   at java.lang.Thread.run(Thread.java)
> 
>    I have the packages swing.jar, motif.jar & window.jar in the classpath
> and in in the class directory of netscape
> (/usr/local/netscape/java/classes).
> 

The matter is that version of Java VM in Navigator is slightly different
;-) from yores and is incompatible for Swing-applet running at all. You
may update Navigator's VM for newest. Sun has a product named Java
Plug-in. It could be found at
http://java.sun.com:80/products/plugin/index.html.
        I have tried it under Win32 and it was working properly. But the major
problem in Linux case is that there aren't ports of Java Plug-in
available :-(  

Pavel Drobnich

P.S. As for me, Swing-like applets is most slowest browser solution that
I seen in my life. Try servlets. Of course those not so nice as Swing,
but more applicable in real life.

        I

Reply via email to