You must run applets differently than Java applications. If you're using an IDE (such as Eclipse), you have the choice to run a program as an applet or as a Java application.
Otherwise, create a...
Type: Posts; User: helloworld922
You must run applets differently than Java applications. If you're using an IDE (such as Eclipse), you have the choice to run a program as an applet or as a Java application.
Otherwise, create a...
Applets come pre-supplied with a main method. You shouldn't be trying to create an applet separately. Applets also should be initialized in the init() method, not the applet constructor. Try running...