// AButton Class

import java.awt.*;
import java.awt.event.*;

	class AButton
	   {
	    public final int WIDTH = 72, HEIGHT = 20;

	    private String name;
	    private int left, top, x;

	    public AButton(String theName,
	       int theLeft, int theTop)
	       {
	        name = theName;
	        left = theLeft;
	        top = theTop;
	       }

	       public void paint(Graphics g)
	       {
	        g.setColor(Color.black);
	        g.fillRoundRect(left+2, top+2, WIDTH, HEIGHT, 18, 18);
	        g.setColor(Color.white);
	        g.fillRoundRect(left, top, WIDTH, HEIGHT, 18, 18);
	        g.setColor(Color.black);
	        g.drawString(name, left + 5, top + 14);
	        g.drawRoundRect(left, top, WIDTH, HEIGHT, 18, 18);
	       }

	       public boolean inside(int x, int y)
	       {
	        if (left <= x && x <= left + WIDTH && top <= y &&
	            y <= top+HEIGHT)
	            return true;
	        return false;
           }

           public String toString()
           {
            return "AButton: <" + name + "> at ("
                    + left + ", " + top +")";
           }
       }