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

Ubuntu 16.04 + HiDPI: menu is broken

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:

      Description

      similar to JDK-8159963

      Ubuntu 16.04 (Unity) + HiDPI + JDK9b122

      Please run the following sample:

      import javafx.application.Application;
      import javafx.scene.*;
      import javafx.scene.control.*;
      import javafx.scene.layout.VBox;
      import javafx.stage.Stage;

      public class MenuApp extends Application {

          public Parent createContent() {

              VBox vbox = new VBox(20);
              vbox.setPrefSize(300, 200);
              final MenuBar menuBar = new MenuBar();
              Menu m1 = new Menu("one");
              m1.getItems().addAll(new MenuItem("111"), new MenuItem("222"));
              Menu m2 = new Menu("two");
              m2.getItems().addAll(new MenuItem("aaa"), new MenuItem("bbb"));
              Menu menu = new Menu("menu");
              menu.getItems().addAll(m1, m2);
              menuBar.getMenus().addAll(menu);
              vbox.getChildren().addAll(menuBar);
              return vbox;
          }

          @Override
          public void start(Stage primaryStage) throws Exception {
              primaryStage.setScene(new Scene(createContent()));
              primaryStage.show();
          }

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

      Cannot navigate over the menu items (but the menu become selected when moving the mouse over it)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ddhill David Hill (Inactive)
                Reporter:
                avstepan Alexander Stepanov
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: