Pagination control focus issue

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 9
    • Component/s: javafx
    • None
    • Environment:

      b129

      Pagination control does not receive focus being clicked on previously selected item.

      Sample to check:
      import javafx.application.Application;
      import javafx.beans.value.ChangeListener;
      import javafx.beans.value.ObservableValue;
      import javafx.scene.Node;
      import javafx.scene.Scene;
      import javafx.scene.control.*;
      import javafx.scene.layout.HBox;
      import javafx.stage.Stage;

      public class App extends Application {

          public static void main(String[] args) {
              launch(args);
          }

          @Override
          public void start(Stage stage) throws Exception {
              Node pagination = new Pagination(5);
              pagination.focusedProperty().addListener(new ChangeListener<Boolean>() {
                  @Override
                  public void changed(ObservableValue<? extends Boolean> ov, Boolean t, Boolean t1) {
                      System.out.println(t1);
                  }
              });
              Button button = new Button("Button");
              Scene scene = new Scene(new HBox(button, pagination), 200, 200);
              stage.setScene(scene);
              stage.show();
          }
      }

            Assignee:
            Unassigned
            Reporter:
            Oleg Barbashov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: