diff --git a/src/main/java/workshop/Controller.java b/src/main/java/workshop/Controller.java index 32df3ee..8019b4c 100644 --- a/src/main/java/workshop/Controller.java +++ b/src/main/java/workshop/Controller.java @@ -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(); } } diff --git a/src/main/resources/workshop/pricing.fxml b/src/main/resources/workshop/pricing.fxml index a8ad5f2..e3b0dd8 100644 --- a/src/main/resources/workshop/pricing.fxml +++ b/src/main/resources/workshop/pricing.fxml @@ -30,8 +30,8 @@ -