Guest User

Untitled

a guest
Jun 27th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. package fruitninja;
  2.  
  3.  
  4. import fruitninja.controllers.MainController;
  5. import javafx.application.Application;
  6. import javafx.fxml.FXMLLoader;
  7. import javafx.scene.Parent;
  8. import javafx.scene.Scene;
  9. import javafx.stage.Stage;
  10.  
  11. public class App extends Application {
  12. public static void main(String[] args) {
  13. launch(args);
  14. }
  15.  
  16. /**
  17. * Open up the views.
  18. *
  19. * @param stage
  20. * @throws Exception
  21. */
  22. public void start(Stage stage) throws Exception {
  23. Parent root = FXMLLoader.load(getClass().getResource("/MainView.fxml"));
  24. stage.setResizable(false);
  25.  
  26. stage.setTitle("Fruit Ninja");
  27.  
  28. final Scene scene = new Scene(root);
  29. stage.setScene(scene);
  30. stage.show();
  31.  
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment