Sat, 26 Jan 2013 17:42:07 +0100
check functions
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 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(f, c); c.gridy++; root.add(new ButtonPanel(h), 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); } }