import java.applet.Applet; import java.awt.*; public class Grid extends Applet { private Button button1, button2, button3, button4, button5; public void init() { button1 = new Button( "one"); button2 = new Button( "two"); button3 = new Button( "three"); button4 = new Button( "four"); button5 = new Button( "five"); setLayout (new GridLayout(2, 3) ); add ( button1); add ( button2); add ( button3); add ( button4); add ( button5); } }