develop #1
@@ -17,21 +17,23 @@ public class Controller {
|
|||||||
@FXML
|
@FXML
|
||||||
private void initialize(){
|
private void initialize(){
|
||||||
basicPriceLabel.setText("$12.99 / month");
|
basicPriceLabel.setText("$12.99 / month");
|
||||||
|
ProPriceLabel.setText("$20.66 / month");
|
||||||
|
enterPrisePrice.setText("Join us");
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private void buyBasic() {
|
private void buyBasic() {
|
||||||
showAlert(Alert.AlertType.INFORMATION);
|
showAlert("Bacis plan Selected",Alert.AlertType.INFORMATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private void buyPro() {
|
private void buyPro() {
|
||||||
showAlert(Alert.AlertType.WARNING);
|
showAlert("Pro plan Selected",Alert.AlertType.WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private void buyEnterprise() {
|
private void buyEnterprise() {
|
||||||
showAlert(Alert.AlertType.CONFIRMATION);
|
showAlert("Enter price Selected",Alert.AlertType.CONFIRMATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@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 alert = new Alert(alertType);
|
||||||
alert.setHeaderText("Bacis plan Selected");
|
alert.setHeaderText(msseage);
|
||||||
alert.show();
|
alert.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,8 +30,8 @@
|
|||||||
</VBox>
|
</VBox>
|
||||||
|
|
||||||
<VBox styleClass="card" prefWidth="200">
|
<VBox styleClass="card" prefWidth="200">
|
||||||
<Label fx:id="enterPrisePrice" text="Enterprise" styleClass="plan-name" />
|
<Label text="Enterprise" styleClass="plan-name" />
|
||||||
<Label text="Contact us" styleClass="price" />
|
<Label fx:id="enterPrisePrice" text="Contact us" styleClass="price" />
|
||||||
<Label text="Unlimited users, custom solutions" styleClass="desc" wrapText="true" />
|
<Label text="Unlimited users, custom solutions" styleClass="desc" wrapText="true" />
|
||||||
<Button text="Shop" onAction="#buyEnterprise" styleClass="shop-btn" />
|
<Button text="Shop" onAction="#buyEnterprise" styleClass="shop-btn" />
|
||||||
</VBox>
|
</VBox>
|
||||||
|
|||||||
Reference in New Issue
Block a user