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

Ubuntu 16.04 + HiDPI: menu is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 9
    • 9
    • javafx

      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)

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

              Created:
              Updated:
              Resolved: