Don't forget to show default text, if provided
authorJaroslav Tulach <jtulach@netbeans.org>
Mon, 21 Jul 2014 11:28:13 +0200
changeset 744573640006bc9
parent 743 e2aa389d4968
child 745 4f12b1d9c695
child 751 618f9d75814b
Don't forget to show default text, if provided
boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java
     1.1 --- a/boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java	Mon Jul 21 10:38:01 2014 +0200
     1.2 +++ b/boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java	Mon Jul 21 11:28:13 2014 +0200
     1.3 @@ -212,6 +212,9 @@
     1.4                  final Button cancel = new Button(r.getString("PromptCancelButton")); // NOI18N
     1.5                  final Text text = new Text(prompt.getMessage());
     1.6                  final TextField line = new TextField();
     1.7 +                if (prompt.getDefaultValue() != null) {
     1.8 +                    line.setText(prompt.getDefaultValue());
     1.9 +                }
    1.10                  final Insets ins = new Insets(10);
    1.11                  final VBox box = new VBox();
    1.12                  box.setAlignment(Pos.CENTER);