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

[Combobox] when combobox in focus click in space not open popup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx

      run this code and set focus to the combobox and click space - not effects.
       @Override
        public void start(Stage primaryStage) {
              primaryStage.setTitle("Hello World!");
              Button btn = new Button();
              btn.setText("Say 'Hello World'");
              btn.setOnAction(new EventHandler<ActionEvent>() {

                  @Override
                  public void handle(ActionEvent event) {
                      System.out.println("Hello World!");
                  }
              });
              
              ComboBox box = new ComboBox<>();
              box.getItems().setAll("First", "Second");
              VBox root = new VBox();
              root.getChildren().addAll(btn, box);
              primaryStage.setScene(new Scene(root, 300, 250));
              primaryStage.show();
          }

            jgiles Jonathan Giles
            slugovoy Sergey Lugovoy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: