View Single Post
  #8 (permalink)  
Old 11-30-2007, 12:32 PM
revathi17 revathi17 is offline
Member
 
Join Date: Aug 2007
Posts: 22
revathi17 is on a distinguished road
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
Reply With Quote