import java.awt.*;
import java.applet.*;

/**
 * This class reads PARAM tags from its HTML host page and sets
 * the color and label properties of the applet. Program execution
 * begins with the init() method. 
 */
public class Applet1 extends Applet
{
	int x,y;
	
	public void init()
	{
	//	initForm();
	//	usePageParams();
		x=6;y=8;		
		setBackground(Color.white);
		setForeground(Color.blue);
		// TODO: Add any constructor code after initForm call.
	}
	
	
	public void paint(Graphics g)
	{
		g.drawString("x="+x+",y="+y,100,50);
		g.setColor(Color.red);
		g.drawLine(100,52,200,52);
		g.setColor(Color.black);
		g.drawRect(85,37,70,18);
		setForeground(Color.gray);
		g.drawString("Hola",100,150);
		showStatus("uacj");
					  
					  			
	}
	
	public boolean mouseMove(Event e,int posx,int posy)
	{
		x=posx;
		y=posy;
		repaint();
		return true;
	}
	
	
}
