Your browser does not support the HTML canvas tag.
Enter Data Here



Home

//******************************************************************************
// project3.for.java:	Applet
//
//******************************************************************************
import java.applet.*;
import java.awt.*;
public class project3 extends Applet
{
	String     sText; 
	Label      lblPrompt;
	TextField  txtData;

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

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

public void init()
{
	resize( 300, 150 );
	sText     = "That's All Folks";
	lblPrompt = new Label("Enter Data Here");
	txtData   = new TextField ("Default Data goes Here");
	
	add(lblPrompt);
	add(txtData);

// TODO: Place additional initialization code here
}

public void paint(Graphics g)
{
	g.drawString (sText, 100, 75);
}

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

public void stop()
{
}

}