Hello, I am new to
java are have a problem with a swing app. When I run "java colorswitch.ColorSwitch" it works, but when I use the below html snipper it gives this error....
java.lang.ClassCastException: colorswitch.ColorSwitch
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source).....
I am using Forte and it also runs fine if I run the .class file direcly in Forte.
Any help would be greatly appreicated.
====================================================
HTML CODE
........
<PARAM NAME = CODE VALUE = "colorswitch.ColorSwitch" >
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.3" CODE = "colorswitch.ColorSwitch" WIDTH = 150 HEIGHT = 150 scriptable=false......<br /> ......
=====================================================