Your browser does not support the HTML canvas tag.


Home

//******************************************************************************
// project2.for.java:	Applet
//
//******************************************************************************
import java.applet.*;
import java.awt.*;
public class project2 extends Applet
{

public project2()
{
// TODO: Add constructor code here
}

public String getAppletInfo()
{
	return "Name: project2\r\n" +
	       "Author: \r\n" +
	       "Created with Microsoft Visual J++ Version 6.0";
}

public void init()
{
	resize( 150, 100 );
// TODO: Place additional initialization code here
}

public void paint(Graphics g)
{
	g.setColor (new Color (255, 0, 0) );
	g.fillRect (0, 0, 150, 100);
	g.setColor (new Color (200, 0, 0) );
	g.fillRect (10, 10, 130, 80);
	g.setColor (new Color (255, 255, 255) );
	g.drawString("Hey big foot", 25, 30);
}

public void start()
{
// TODO: Place additional applet start code here
}

public void stop()
{
}

}