import java.awt.*;

class ColoredButton extends Panel
{
   public ColoredButton(String str, Color c)
   {
      setBackground(c);

      add(new Button(str));
   }

   public Insets insets()
   {
      return new Insets(2, 2, 2, 2);
   }
}

public class ColorUser extends java.applet.Applet
{
   public void init()
   {
      add(new Button("Yes"));
      add(new Button("Maybe"));
      add(new ColoredButton("No", Color.red));
   }

   public Insets insets()
   {
      return new Insets(5, 5, 5, 5);
   }

   public static void main(String [] args)
   {
      Frame f = new Frame("A Clever User of Color");

      ColorUser cu = new ColorUser();

      cu.init();

      f.add("Center", cu);

      f.pack();
      f.show();
   }
}
