import java.awt.*;
import java.applet.Applet;
public class DrawFigures extends Applet
{
	public void paint (Graphics g)
  	{
		Font f = new Font ("Courier", Font.BOLD, 18);
		Color c = new Color(0,0,255);
		g.drawLine (15,15,75,75);
		g.drawLine (15,75,75,15);
		g.drawRect (15,15,65,65);
		g.fillRect (75,75,100,100);
		g.setFont(f);
		g.setColor(c);
		g.drawString ("Hello Java",125,50);
  	}
}

Click here to go back.

Our aim is to provide information to the knowledge seekers. 


comments powered by Disqus


Footer1