changed some code for better compatibility with IntelliJ

This commit is contained in:
Hosein
2026-05-16 22:34:34 +03:30
parent 9d4ecd0b0d
commit 3dd2d84cda
5 changed files with 12 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
package workshop;
import javafx.application.Application;
public class Launcher {
public static void main(String[] args) {
// TODO: Launch the JavaFX application by calling Application.launch(Main.class)
}
}
+1 -5
View File
@@ -7,11 +7,7 @@ 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: 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()
}
public static void main(String[] args) {
// TODO: Launch the JavaFX application by calling launch()
}
}
@@ -17,14 +17,14 @@
<HBox spacing="25" alignment="CENTER" HBox.hgrow="ALWAYS">
<VBox styleClass="card" prefWidth="200">
<Label text="Basic" styleClass="plan-name" />
<Label text="$9.99 / month" styleClass="price" />
<Label text="\$9.99 / month" styleClass="price" />
<Label text="Single user, basic features" styleClass="desc" wrapText="true" />
<Button text="Shop" onAction="#buyBasic" styleClass="shop-btn" />
</VBox>
<VBox styleClass="card" prefWidth="200">
<Label text="Pro" styleClass="plan-name" />
<Label text="$19.99 / month" styleClass="price" />
<Label text="\$19.99 / month" styleClass="price" />
<Label text="Up to 5 users, advanced features" styleClass="desc" wrapText="true" />
<Button text="Shop" onAction="#buyPro" styleClass="shop-btn" />
</VBox>