Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1.  
  2. package javafx;
  3.  
  4. import java.io.IOException;
  5. import javafx.application.Application;
  6. import javafx.event.ActionEvent;
  7. import javafx.event.EventHandler;
  8. import javafx.scene.Scene;
  9. import javafx.scene.control.Button;
  10. import javafx.scene.layout.StackPane;
  11. import javafx.stage.Stage;
  12.  
  13. /**
  14. *
  15. * @author student
  16. */
  17. public class JavaFX extends Application {
  18.  
  19. @Override
  20. public void start(Stage primaryStage) throws IOException {
  21. SceneManager.setStage(primaryStage);
  22. SceneManager.addScene("scena1","/javafx/Scena_1.fxml");
  23. SceneManager.addScene("scena2","/javafx/Scena_2.fxml");
  24. }
  25.  
  26. /**
  27. * @param args the command line arguments
  28. */
  29. public static void main(String[] args) {
  30. launch(args);
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement