Beispiel #1
0
 /** Executes the program. */
 public static void main(String[] args) {
   Main frame = new Main();
   frame.setTitle("Sudoku");
   frame.setSize(1000, 500);
   frame.setVisible(true);
   frame.setLocationRelativeTo(null); // Centre the frame
   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 }
Beispiel #2
0
 /**
  * Main method
  *
  * @param args
  * @throws IOException
  */
 public static void main(String[] args) throws IOException {
   Main game = new Main();
   game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   game.pack();
   game.setVisible(true);
 }