import java.awt.*;

public class GW extends Canvas
{
	public int x;
	Graphics gw;
	
	public GW(int x)
	{
		this.x = x;
		this.repaint();
	}
	public void paint(Graphics g)
	{
		Graphics gw = g.create();
		if (x == 1)
		gw.setColor(Color.red);
		else if (x == 2)
		gw.setColor(Color.yellow);
		else 
		gw.setColor(Color.green);
		gw.fillRect(0,0,1000,100);
		this.show();	
		
	}
	
}
