Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. package sudoko;
  2.  
  3. import java.util.Locale;
  4. import javafx.application.Application;
  5. import javafx.scene.Scene;
  6. import javafx.scene.layout.BorderPane;
  7. import javafx.scene.layout.TilePane;
  8. import javafx.stage.Stage;
  9.  
  10. public class SudokuApplication extends Application {
  11. private Sudoku sudoku;
  12. private OneNumberField field;
  13. private SudokuView sudokuView;
  14.  
  15. public static void main(String[] args) {
  16. Application.launch(args);
  17. }
  18.  
  19. @Override
  20. public void start(Stage primaryStage) throws Exception {
  21. Locale.setDefault(Locale.ENGLISH);
  22.  
  23. sudokuView = new SudokuView(sudoku);
  24. BorderPane root = new BorderPane();
  25.  
  26. root.setLeft(sudokuView);
  27.  
  28. Scene scene = new Scene(root);
  29. primaryStage.setTitle("Sudoku");
  30. primaryStage.setScene(scene);
  31. primaryStage.show();
  32.  
  33. }
  34.  
  35. @Override
  36. public void stop(){
  37.  
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement