JPanel contentPane = new JPanel(new GridLayout(0, 1));
contentPane.add(new JLabel("Which GUI example do you want to see?"));
contentPane.add(new JButton(new AbstractAction("SudokuExample") {
public void actionPerformed(ActionEvent e) {
new SudokuExample().init(false);
}
}));
contentPane.add(new JButton(new AbstractAction("PetStoreExample") {
public void actionPerformed(ActionEvent e) {
new PetStoreExample().init(false);