1.1 --- a/src/de/uapcore/sudoku/Sudoku.java Sat Jan 26 15:48:59 2013 +0100 1.2 +++ b/src/de/uapcore/sudoku/Sudoku.java Sat Jan 26 17:42:07 2013 +0100 1.3 @@ -11,19 +11,25 @@ 1.4 * 1.5 * @author mike 1.6 */ 1.7 -public class Sudoku extends JFrame { 1.8 +public final class Sudoku extends JFrame { 1.9 1.10 public Sudoku() { 1.11 super("Sudoku"); 1.12 1.13 + Field f = new Field(); 1.14 + ActionHandler h = new ActionHandler(f); 1.15 + 1.16 JRootPane root = getRootPane(); 1.17 1.18 root.setLayout(new GridBagLayout()); 1.19 GridBagConstraints c = new GridBagConstraints(); 1.20 c.insets = new Insets(20, 20, 20, 20); 1.21 + c.fill = GridBagConstraints.HORIZONTAL; 1.22 1.23 c.gridx = 0; c.gridy = 0; 1.24 - root.add(new Field(), c); 1.25 + root.add(f, c); 1.26 + c.gridy++; 1.27 + root.add(new ButtonPanel(h), c); 1.28 1.29 pack(); 1.30 root.setBackground(Color.WHITE);