|
You need to run the program as Java applet instead of a Java application. I use eclipse and I run your program as Java applet it works fine. I am not sure how you do that in JCreator.
If you run as JApplet the init() method of the applet is automatically invoked and you don't need a 'main()' method in that case.
-R
|