Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. import javafx.application.Application;
  2. import javafx.scene.Scene;
  3. import javafx.scene.control.Button;
  4. import javafx.scene.control.Label;
  5. import javafx.scene.control.TextField;
  6. import javafx.scene.layout.BorderPane;
  7. import javafx.scene.layout.Pane;
  8. import javafx.stage.Stage;
  9. import javafx.fxml.FXMLLoader;
  10.  
  11. public class MapGame extends Application {
  12. Stage stage;
  13.  
  14. @Override
  15. public void start(Stage primaryStage) throws Exception {
  16. stage = primaryStage;
  17. primaryStage.setTitle("MAP GAME");
  18. Pane myPane_top = (Pane) FXMLLoader.load(getClass().getResource("MapGame.fxml"));
  19. Scene myScene = new Scene(myPane_top);
  20. primaryStage.setScene(myScene);
  21. primaryStage.show();
  22. }
  23.  
  24. public static void main(String[] args) {
  25. launch(args);
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement