edit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user