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

[TESTBUG] Test javax/swing/JWindow/ShapedAndTranslucentWindows/TranslucentJComboBox.java fails


    • Subcomponent:
    • Resolved In Build:
    • OS:


      Test javax/swing/JWindow/ShapedAndTranslucentWindows/TranslucentJComboBox.java fails with following exception when run at HiDPI scale >=2. This fails with OpenGL and D3D both.

      There are two issues with the test
      1. The test clicks on ComboBox to open a Popup. Now if the HiDPI value is too high like 2.5, the button will go out of screen on full HD display. This results in test fail.

      Error message
      Exception in thread "main" java.lang.RuntimeException: Flag is not triggered for point 327, 442!

      2. If the HiDPi value is something like 2.0, the ComboBox is displayed properly and clicked, but when the Popup menu is created, the space below is less than the number of elements in the Popup list. so the list come in upper part of ComboBox which has Opacity of .3. This results in wrong color picking by robot.

      Error message
      Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Check for opaque drop down failed at point java.awt.Point[x=391,y=380]. Before click: java.awt.Color[r=76,g=76,b=255], after click: java.awt.Color[r=71,g=71,b=250], expected is javax.swing.plaf.ColorUIResource[r=238,g=238,b=238]

      I have attached images at scale 2.5, 2.0 and 1.5 to demonstrate the same.

      Note: The failure at 2.5 is just because of screen resolution limitation and can not be solved completely.
      The issue for 2.0 is because test does not consider the case if the popup is created above the JComboBox inside the translucent window. This needs to be fixed.


        1. Scale1.5.png
          10 kB
        2. Scale2.0.png
          9 kB
        3. Scale 2.5.png
          Scale 2.5.png
          5 kB

          Issue Links



              • Assignee:
                pbansal Pankaj Bansal
                pbansal Pankaj Bansal
              • Votes:
                0 Vote for this issue
                4 Start watching this issue


                • Created: