// The "Gr_demo" class.
import java.applet.*;
import java.awt.*;

public class Gr_demo extends Applet
{
    // Place instance variables here
    
    public void init ()
    {
	// Place the body of the initialization method here
    } // init method
    
    
    public void paint (Graphics g)
    {
	 g.drawRect(50,80,100,100);
	 g.setFont(new Font("SansSerif", Font.BOLD, 40));
       
	 g.drawString( "RECTANGLE", 20,30);
	 g.setColor(Color.green);
	 g.fillRect(50,80,100,100);
	 g.setColor(Color.blue);
	 g.fillRect(100, 40, 100,30);
    } // paint method
} // Gr_demo class

