< prev index next >

modules/controls/src/main/java/javafx/scene/control/Alert.java

Print this page
rev 9268 : 8136892: Cannot get rid of OK and CANCEL buttons using pure FXML

@@ -235,11 +235,11 @@
      * is instantiated, developers are able to modify the values of the alert as 
      * desired.
      */
     public Alert(@NamedArg("alertType") AlertType alertType,
                  @NamedArg("contentText") String contentText,
-                 ButtonType... buttons) {
+                 @NamedArg("buttonTypes") ButtonType... buttons) {
         super();
 
         final DialogPane dialogPane = getDialogPane();
         dialogPane.setContentText(contentText);
         getDialogPane().getStyleClass().add("alert");
< prev index next >