src/de/uapcore/sudoku/Sudoku.java

changeset 2
5179eff8a9b6
parent 1
f1d7de36b01e
child 3
ed931970b4ac
--- 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);

mercurial