import java.awt.*; import javax.swing.*; public class Crisis2 extends JApplet { JButton panicButton = new JButton("Panic"); JButton dontPanicButton = new JButton("Don't Panic"); JButton blameButton = new JButton("Blame Others"); JButton mediaButton = new JButton("Notify the Media"); JButton saveButton = new JButton("Save Yourself"); public void init() { Container pane = getContentPane(); GridLayout flo = new GridLayout(2, 3); pane.setLayout(flo); pane.add(panicButton); pane.add(dontPanicButton); pane.add(blameButton); pane.add(mediaButton); pane.add(saveButton); setContentPane(pane); } }