changed some code for better compatibility with IntelliJ
This commit is contained in:
@@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -7,11 +7,7 @@ public class Main extends Application {
|
|||||||
@Override
|
@Override
|
||||||
public void start(Stage stage) throws Exception {
|
public void start(Stage stage) throws Exception {
|
||||||
// TODO: Load the FXML file using FXMLLoader.load() and get the Parent root
|
// 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()
|
// 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">
|
<HBox spacing="25" alignment="CENTER" HBox.hgrow="ALWAYS">
|
||||||
<VBox styleClass="card" prefWidth="200">
|
<VBox styleClass="card" prefWidth="200">
|
||||||
<Label text="Basic" styleClass="plan-name" />
|
<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" />
|
<Label text="Single user, basic features" styleClass="desc" wrapText="true" />
|
||||||
<Button text="Shop" onAction="#buyBasic" styleClass="shop-btn" />
|
<Button text="Shop" onAction="#buyBasic" styleClass="shop-btn" />
|
||||||
</VBox>
|
</VBox>
|
||||||
|
|
||||||
<VBox styleClass="card" prefWidth="200">
|
<VBox styleClass="card" prefWidth="200">
|
||||||
<Label text="Pro" styleClass="plan-name" />
|
<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" />
|
<Label text="Up to 5 users, advanced features" styleClass="desc" wrapText="true" />
|
||||||
<Button text="Shop" onAction="#buyPro" styleClass="shop-btn" />
|
<Button text="Shop" onAction="#buyPro" styleClass="shop-btn" />
|
||||||
</VBox>
|
</VBox>
|
||||||
Reference in New Issue
Block a user