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");
|
2025-10-01 20:48:55 -04:00
|
|
|
Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("main.fxml"));
|
2025-10-01 18:56:39 -04:00
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|