Guess what recently ive been working on java applets and it is some really cool stuff
So for the introduction part there are a few things you should keep in mind while
working with applets
1-import java.awt.*; package for appletsdont forget to import it
2-public class apl extends Applet
here apl is name of your class and Applet is a inbuilt class
3-public void init()
this is also inbuilt method used for declairing every data type or what attributes the programme is going to have
4-public void paint(Graphics g)
this is also an inbuilt function used for printing things on screen
------------------------------------------------------------------------------------------------------------
These things would be more clear in our next post
So for the introduction part there are a few things you should keep in mind while
working with applets
1-import java.awt.*; package for appletsdont forget to import it
2-public class apl extends Applet
here apl is name of your class and Applet is a inbuilt class
3-public void init()
this is also inbuilt method used for declairing every data type or what attributes the programme is going to have
4-public void paint(Graphics g)
this is also an inbuilt function used for printing things on screen
------------------------------------------------------------------------------------------------------------
These things would be more clear in our next post
No comments:
Post a Comment