Liju Tom wrote:
This code on it's own will neither run as an Applet, nor as a simple Java class.
This code must be a simple code segment to demonstrate the use of Panel in AWT.
You should go back and see how a simple Applet code is written and run.. (What a class needs to do to become an Applet)
See
Defining an Applet Subclass for more details..