import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; public class MyFirstSceneBuilderApp extends Application { public void start(Stage primaryStage) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("myFirstButton.fxml")); primaryStage.setTitle("My First Button Scene Builder App"); primaryStage.setScene(new Scene(root,300,200)); primaryStage.show(); } }