Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fruitninja;
- import fruitninja.controllers.MainController;
- import javafx.application.Application;
- import javafx.fxml.FXMLLoader;
- import javafx.scene.Parent;
- import javafx.scene.Scene;
- import javafx.stage.Stage;
- public class App extends Application {
- public static void main(String[] args) {
- launch(args);
- }
- /**
- * Open up the views.
- *
- * @param stage
- * @throws Exception
- */
- public void start(Stage stage) throws Exception {
- Parent root = FXMLLoader.load(getClass().getResource("/MainView.fxml"));
- stage.setResizable(false);
- stage.setTitle("Fruit Ninja");
- final Scene scene = new Scene(root);
- stage.setScene(scene);
- stage.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement