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

[hidpi] Ubuntu 16.04: cannot select ChoiceBox item

XMLWordPrintable

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

      Ubuntu 16.04 (Unity) + HiDPI + JDK9b122.

      Please run the following sample:

      import javafx.application.Application;
      import javafx.scene.Parent;
      import javafx.scene.Scene;
      import javafx.scene.control.ChoiceBox;
      import javafx.stage.Stage;

      public class ChoiceBoxApp extends Application {

          public Parent createContent() {
              ChoiceBox cb = new ChoiceBox();
              cb.getItems().addAll("One", "Two", "Three");
              cb.getSelectionModel().selectFirst();
              return cb;
          }

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

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

      the ChoiceBox is broken: can't list the items or select one of them.

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

              Created:
              Updated:
              Resolved: