import java.awt.*; public class WithoutInsets 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 static void main(String [] args) { Frame f = new Frame("Panel without Insets"); WithoutInsets wi = new WithoutInsets(); wi.init(); f.add("Center", wi); f.pack(); f.show(); } }