package lodge; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; public class TestMainFx extends Application { @Override public void start(Stage primaryStage) { try { primaryStage.setTitle("Lodge ReservationSystem"); Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("main.fxml")); Scene scene = new Scene(root, 800, 600); primaryStage.setScene(scene); primaryStage.show(); } catch (Exception e) { e.printStackTrace(); } } public static void main(String[] args) { launch(args); } }