src/de/uapcore/sudoku/Sudoku.java

changeset 1
f1d7de36b01e
child 2
5179eff8a9b6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/de/uapcore/sudoku/Sudoku.java	Sat Jan 26 15:48:59 2013 +0100
@@ -0,0 +1,40 @@
+package de.uapcore.sudoku;
+
+import java.awt.Color;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import javax.swing.JFrame;
+import javax.swing.JRootPane;
+
+/**
+ *
+ * @author mike
+ */
+public class Sudoku extends JFrame {
+    
+    public Sudoku() {
+        super("Sudoku");
+        
+        JRootPane root = getRootPane();
+        
+        root.setLayout(new GridBagLayout());
+        GridBagConstraints c = new GridBagConstraints();
+        c.insets = new Insets(20, 20, 20, 20);
+        
+        c.gridx = 0; c.gridy = 0;
+        root.add(new Field(), c);
+        
+        pack();
+        root.setBackground(Color.WHITE);
+        setLocationByPlatform(true);
+        setDefaultCloseOperation(EXIT_ON_CLOSE);
+    }
+
+    /**
+     * @param args the command line arguments
+     */
+    public static void main(String[] args) {
+        new Sudoku().setVisible(true);
+    }
+}

mercurial