Emon766

Scene buldier Demo

Nov 24th, 2021 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. package JavaFxNewProject;
  2.  
  3.  
  4.  
  5. import javafx.application.Application;
  6.  
  7. import javafx.fxml.FXMLLoader;
  8. import javafx.scene.Parent;
  9. import javafx.scene.Scene;
  10.  
  11. import javafx.stage.Stage;
  12.  
  13. public class Main extends Application{
  14. int abc = 0;
  15.  
  16.  
  17. @Override
  18. public void start(Stage stage) throws Exception {
  19. Parent root = FXMLLoader.load(getClass().getResource("Main.fxml"));
  20. Scene scene = new Scene(root);
  21. stage.setScene(scene);
  22. stage.setTitle("MY App");
  23. stage.show();
  24. }
  25. public static void main(String[] args) {
  26. launch(args);
  27. }
  28. }
  29.  
Add Comment
Please, Sign In to add comment