-
Bug
-
Resolution: Duplicate
-
P3
-
7u6
This code reproduce issue (Press TAB several times)
@Override
public void start(Stage stage) throws Exception {
VBox root = new VBox(15);
MenuBar menuBar = MenuBarBuilder.create().menus(MenuBuilder.create().
items(new MenuItem("Item")).text("File").build()).build();
menuBar.setFocusTraversable(true);
root.getChildren().addAll(new Button("First"),
menuBar
, new Button("Second"));
Scene scene = new Scene(root, 200, 200);
stage.setScene(scene);
stage.setTitle(VersionInfo.getRuntimeVersion());
stage.show();
}
@Override
public void start(Stage stage) throws Exception {
VBox root = new VBox(15);
MenuBar menuBar = MenuBarBuilder.create().menus(MenuBuilder.create().
items(new MenuItem("Item")).text("File").build()).build();
menuBar.setFocusTraversable(true);
root.getChildren().addAll(new Button("First"),
menuBar
, new Button("Second"));
Scene scene = new Scene(root, 200, 200);
stage.setScene(scene);
stage.setTitle(VersionInfo.getRuntimeVersion());
stage.show();
}
- duplicates
-
JDK-8126344 MenuBar: focused state is not displayed
- Closed
- relates to
-
JDK-8126010 [ProgressBar] setFocusTraversable(true) breaks focus traversing
- Closed