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

[Pagination] don't receive focus on click on buttons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8
    • javafx
    • 8.0b84

      Run the code :

          @Override
          public void start(Stage stage) throws Exception {
              Pagination p = new Pagination(10, 10);
              p.focusedProperty().addListener(new ChangeListener<Boolean>(){

                  @Override
                  public void changed(ObservableValue<? extends Boolean> ov, Boolean t, Boolean t1) {
                      System.out.println(t1);
                  }
              });

              Scene scene = new Scene(new VBox(new Button("Button"), p), 200, 200);
              stage.setScene(scene);
              stage.show();
          }

      Click on buttons of pagination (1, 2, 3....). focus don't come on pagination.

      Affected tests:
      ControlsAutomatedTestSuite/javafx/scene/control/test/focus/FocusOwnerClickTest/test_Paginations
      ControlsAutomatedTestSuite/javafx/scene/control/test/focus/FocusStyleClickTest/test_Paginations
      ControlsAutomatedTestSuite/javafx/scene/control/test/focus/FocusUniquenessClickTest/test_Paginations

            dgrieve David Grieve
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: