View Single Post
  #1 (permalink)  
Old 12-30-2007, 01:04 PM
vinaytvijayan vinaytvijayan is offline
Member
 
Join Date: Dec 2007
Posts: 4
vinaytvijayan is on a distinguished road
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...........
Reply With Quote
Sponsored Links