|
Iam new in Java Please explain to me
import java.awt.*;import java.applet.*;
import java.applet.*;
public class LineRect extends Applet
{public void init(){
}
public void paint(Graphics g)
{
g.drawLine(10,10,50,50);
g.drawRect(10,60,40,30);
}
<APPLET
CODE = LineRect.class
WIDTH = 250
HEIGHT = 200>
</APPLET>
Is init a must for Java Applets If so what should be the paarameters that i have to give How can I run this program Please help me...........
|