1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/de/uapcore/sudoku/Sudoku.java Sat Jan 26 15:48:59 2013 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +package de.uapcore.sudoku; 1.5 + 1.6 +import java.awt.Color; 1.7 +import java.awt.GridBagConstraints; 1.8 +import java.awt.GridBagLayout; 1.9 +import java.awt.Insets; 1.10 +import javax.swing.JFrame; 1.11 +import javax.swing.JRootPane; 1.12 + 1.13 +/** 1.14 + * 1.15 + * @author mike 1.16 + */ 1.17 +public class Sudoku extends JFrame { 1.18 + 1.19 + public Sudoku() { 1.20 + super("Sudoku"); 1.21 + 1.22 + JRootPane root = getRootPane(); 1.23 + 1.24 + root.setLayout(new GridBagLayout()); 1.25 + GridBagConstraints c = new GridBagConstraints(); 1.26 + c.insets = new Insets(20, 20, 20, 20); 1.27 + 1.28 + c.gridx = 0; c.gridy = 0; 1.29 + root.add(new Field(), c); 1.30 + 1.31 + pack(); 1.32 + root.setBackground(Color.WHITE); 1.33 + setLocationByPlatform(true); 1.34 + setDefaultCloseOperation(EXIT_ON_CLOSE); 1.35 + } 1.36 + 1.37 + /** 1.38 + * @param args the command line arguments 1.39 + */ 1.40 + public static void main(String[] args) { 1.41 + new Sudoku().setVisible(true); 1.42 + } 1.43 +}