Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package JavaFxNewProject;
- import javafx.application.Application;
- import javafx.fxml.FXMLLoader;
- import javafx.scene.Parent;
- import javafx.scene.Scene;
- import javafx.stage.Stage;
- public class Main extends Application{
- int abc = 0;
- @Override
- public void start(Stage stage) throws Exception {
- Parent root = FXMLLoader.load(getClass().getResource("Main.fxml"));
- Scene scene = new Scene(root);
- stage.setScene(scene);
- stage.setTitle("MY App");
- stage.show();
- }
- public static void main(String[] args) {
- launch(args);
- }
- }
Add Comment
Please, Sign In to add comment