Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package javafx;
- import java.io.IOException;
- import javafx.application.Application;
- import javafx.event.ActionEvent;
- import javafx.event.EventHandler;
- import javafx.scene.Scene;
- import javafx.scene.control.Button;
- import javafx.scene.layout.StackPane;
- import javafx.stage.Stage;
- /**
- *
- * @author student
- */
- public class JavaFX extends Application {
- @Override
- public void start(Stage primaryStage) throws IOException {
- SceneManager.setStage(primaryStage);
- SceneManager.addScene("scena1","/javafx/Scena_1.fxml");
- SceneManager.addScene("scena2","/javafx/Scena_2.fxml");
- }
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- launch(args);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement