--- a/src/de/uapcore/sudoku/Sudoku.java Sat Jan 26 15:48:59 2013 +0100 +++ b/src/de/uapcore/sudoku/Sudoku.java Sat Jan 26 17:42:07 2013 +0100 @@ -11,19 +11,25 @@ * * @author mike */ -public class Sudoku extends JFrame { +public final class Sudoku extends JFrame { public Sudoku() { super("Sudoku"); + Field f = new Field(); + ActionHandler h = new ActionHandler(f); + JRootPane root = getRootPane(); root.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.insets = new Insets(20, 20, 20, 20); + c.fill = GridBagConstraints.HORIZONTAL; c.gridx = 0; c.gridy = 0; - root.add(new Field(), c); + root.add(f, c); + c.gridy++; + root.add(new ButtonPanel(h), c); pack(); root.setBackground(Color.WHITE);