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

HiDPI (Quartz emulation): JComboBox is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P4 P4
    • None
    • 9
    • client-libs

      Please run the following simple test:

      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;

      public class Test {
          static JFrame frame;
          static JComboBox choice;
          public static void main(String args[]) {
              try {
                  EventQueue.invokeAndWait(new Runnable() {
                      public void run() {
                          frame = new JFrame("frame");
                          choice = new JComboBox<String>();
                          for (int i = 1; i < 5; ++i){
                              choice.addItem("item-0"+i);
                          }

                          frame.setBounds(100, 100, 300, 300);
                          frame.add(choice);
                          frame.setVisible(true);
                      }
                  });
              } catch(Exception ex) {}
          }
      }

      when HiDPI emulation is disabled, the choice could be changed; otherwise can not.

      Mac OS X 10.10 + latest client build (Nov. 17)

            avstepan Alexander Stepanov (Inactive)
            avstepan Alexander Stepanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: