import java.awt.*;

public class WithInsets extends java.applet.Applet
{
   public void init()
   {
      setBackground(Color.yellow);

      setLayout(new GridLayout(0, 1));

      add(new Button("Button One"));
      add(new Button("Button Two"));
   }

   public Insets insets()
   {
      return new Insets(10, 10, 10, 10);
   }

   public static void main(String [] args)
   {
      Frame f = new Frame("Panel with Insets");

      WithInsets wi = new WithInsets();

      wi.init();

      f.add("Center", wi);

      f.pack();
      f.show();
   }
}
