new to Java applets applications

Hi,

Im new to JAVA programming and i bumped into a run time error:

java.lang.ClassCastException: SimpleWin cannot be cast to java.applet.Applet

at sun.applet.AppletPanel.createApplet(AppletPanel.java:778)

at sun.applet.AppletPanel.runLoader(AppletPanel.java:707)

at sun.applet.AppletPanel.run(AppletPanel.java:361)

at java.lang.Thread.run(Thread.java:619)

my code complies with no problems using the Javac command and i have prepared an html script to run the program using the appletviewer command. by the way, the projects' name is SimpleWin, can anyone please point me to the source of this error so i could avoid this next time? thank you guys.

-cctan

[711 byte] By [cctana] at [2007-11-26 16:29:46]
# 1
Post the line the error is occuring on. It looks like you're trying to cast a SimpleWin to an Applet (which is a no-no).
CaptainMorgan08a at 2007-7-8 22:54:10 > top of Java-index,Java Essentials,New To Java...