complete all tasks

This commit is contained in:
2026-05-17 22:31:44 +03:30
parent 54f96e8fb9
commit ca017e3310
5 changed files with 42 additions and 15 deletions
+8 -3
View File
@@ -1,13 +1,18 @@
package workshop;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
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
// TODO: Create a Scene with the root (width=750, height=450) and add the stylesheet "style.css"
// TODO: Set the stage title to "Pricing Plans", set the scene, and call stage.show()
FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("pricing.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 750, 450);
scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
stage.setScene(scene);
stage.setTitle("Pricing Plans");
stage.show();
}
}