Other basic facts:
main method in Applets?
Right! Assuming you have imported java.awt.Graphics
then you can view the substitute for main
to be the paint() method
(and perhaps repaint() method).
System.out.print()?
You can do the following:
g.drawString("Hello World from " + YourName,x,y);
YourName is a string or any printable object
(such as a number). Also, (x,y) is the location
for placing the left end of the output string.
NOTE: (x,y)=(0,0) is the top-left corner of
the applet window.