Files
reservationsystem/src/main/java/lodge/TestMainFx.java

28 lines
742 B
Java
Raw Normal View History

2025-10-01 14:42:41 -04:00
package lodge;
import javafx.application.Application;
2025-10-01 18:56:39 -04:00
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
2025-10-01 14:42:41 -04:00
import javafx.scene.Scene;
import javafx.stage.Stage;
2025-10-01 18:56:39 -04:00
public class TestMainFx extends Application {
2025-10-01 14:42:41 -04:00
@Override
public void start(Stage primaryStage) {
2025-10-01 18:56:39 -04:00
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();
}
2025-10-01 14:42:41 -04:00
}
public static void main(String[] args) {
launch(args);
}
}