This commit is contained in:
2026-05-17 22:35:00 +03:30
parent 30e199fc30
commit 4376fe6d10
2 changed files with 9 additions and 7 deletions
+7 -5
View File
@@ -17,21 +17,23 @@ public class Controller {
@FXML
private void initialize(){
basicPriceLabel.setText("$12.99 / month");
ProPriceLabel.setText("$20.66 / month");
enterPrisePrice.setText("Join us");
}
@FXML
private void buyBasic() {
showAlert(Alert.AlertType.INFORMATION);
showAlert("Bacis plan Selected",Alert.AlertType.INFORMATION);
}
@FXML
private void buyPro() {
showAlert(Alert.AlertType.WARNING);
showAlert("Pro plan Selected",Alert.AlertType.WARNING);
}
@FXML
private void buyEnterprise() {
showAlert(Alert.AlertType.CONFIRMATION);
showAlert("Enter price Selected",Alert.AlertType.CONFIRMATION);
}
@FXML
@@ -48,9 +50,9 @@ public class Controller {
}
}
private void showAlert(Alert.AlertType alertType) {
private void showAlert(String msseage, Alert.AlertType alertType) {
Alert alert = new Alert(alertType);
alert.setHeaderText("Bacis plan Selected");
alert.setHeaderText(msseage);
alert.show();
}
}
+2 -2
View File
@@ -30,8 +30,8 @@
</VBox>
<VBox styleClass="card" prefWidth="200">
<Label fx:id="enterPrisePrice" text="Enterprise" styleClass="plan-name" />
<Label text="Contact us" styleClass="price" />
<Label text="Enterprise" styleClass="plan-name" />
<Label fx:id="enterPrisePrice" text="Contact us" styleClass="price" />
<Label text="Unlimited users, custom solutions" styleClass="desc" wrapText="true" />
<Button text="Shop" onAction="#buyEnterprise" styleClass="shop-btn" />
</VBox>