Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8119911

Setting placeHolder on ComboBox causes visual artifact

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • javafx
    • None

    Description

      See attached image. Comment out setPlaceholder call in the sample below and the ellipsis goes away.

          @Override
          public void start(Stage stage) throws Exception {

              ComboBox emptyPromptComboBox = new ComboBox();
              emptyPromptComboBox.setPromptText("Prompting you here");
              emptyPromptComboBox.setPlaceholder(new Label("There are no options available!"));

              StackPane root = new StackPane();
              root.getChildren().add(emptyPromptComboBox);

              Scene scene = new Scene(root, 400, 300);
              stage.setScene(scene);
              stage.show();
          }

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            dgrieve David Grieve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: