I have written a simple
applet, when I use awt components and extend Applet it works fine, but if I use JApplet and swing components it doesn't work, I get a loadClass not found error.
It compiles so it can't be anything to do with my classpath.
does anyone know what could be wrong:
code:
import java.applet.*;
import javax.swing.*;
class ColorSelector extends JApplet{ //when Applet it works
//code is here
}
and embedded here:
<Applet code="ColorSelector.class" codebase="." width="300" height="400">
<Param name="Red" value="140">
<Param name="Green" value="120">
<Param name="Blue" value="110">