Sunday, 19 July 2015

SIMPLE METHODS THAT SHOULD BE CARE FOR WRITING APPLET PROGRAMME.

Important things that should must be noted when writing a programme for creating a applet programmes.

1)import java.awt.*;
2)import java.applet.*;
3)//<applet code="stairs" height="500" width="500"></applet>
This applet code is must to be written it basically delivers the applet bar. and all Game of drawing cartoon depends upon Co-ordinates System.
In this co-ordinate System (0,0) starts from top left hand side and from that horizontal is x axis and verticall downward line is y axis.
you can change file name and height and width of the applet bar
4)public class stairs extends Applet (here Applet is case sensitive so Take care of that).
5)g.drawString("welcome to the cartoon world",80,20);
Here in the string you can write the head topic of your file for examples:Welcome to the cartoon World. At any co-ordinates you want.

No comments:

Post a Comment