From 5ac8d1acdf5385e6d6b689cee94bc970ce12e93e Mon Sep 17 00:00:00 2001 From: SaraZoveydavian Date: Thu, 16 Jul 2026 20:55:22 +0330 Subject: [PATCH] Main Class completed --- src/main/java/workshop/Main.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/workshop/Main.java b/src/main/java/workshop/Main.java index d6cd3fd..85ef539 100644 --- a/src/main/java/workshop/Main.java +++ b/src/main/java/workshop/Main.java @@ -1,13 +1,24 @@ package workshop; import javafx.application.Application; +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.scene.layout.VBox; import javafx.stage.Stage; public class Main extends Application { @Override public void start(Stage stage) throws Exception { // TODO: Load the FXML file using FXMLLoader.load() and get the Parent root + FXMLLoader fxmlLoader = new FXMLLoader (getClass().getResource("pricing.fxml")); // TODO: Create a Scene with the root (width=750, height=450) and add the stylesheet "style.css" + Scene scene = new Scene(fxmlLoader.load(), 750, 450); + scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm()); // TODO: Set the stage title to "Pricing Plans", set the scene, and call stage.show() + stage.setTitle("Pricing Plans"); + stage.setScene(scene); + stage.show(); } }