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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Environment:

      8.0b84

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: