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

Right to Left Orientation Issues with MenuItem Component

XMLWordPrintable

    • In Review
    • windows

      Testsuite name: Regression
      TestName :
      open/test/jdk/javax/swing/JMenuItem/RightLeftOrientation.java#windows
      closed/test/jdk/javax/swing/JMenuItem/6458123/ManualBug6458123.java

      Product(s) tested: JDK-26+11 / JDK-21.0.9+6 / JDK-17.0.17+6 / JDK-11.0.29+7 / JDK8u471b06

      OS/architecture: Windows 11 (24H2)

      Actual behavior: In case of ManualBug6458123.java change the LookAndFeel to WindowsLookAndFeel and observe the UI in "First R2L" (Right to Left Orientation) Menu items.

      MenuItem with only Icon doesn't show the icon
      MenuItem with "Text leads icon" shows a truncated Icon.
      JCheckBoxMenuItem and JRadioButtonMenuItem show truncated UI.

      In case of RightLeftOrientation.java#windows as per the test Instructions the JMenuItem's shown in Frame lower half(RIGHT_TO_LEFT Orientation) should mirror the upper half (LEFT_TO_RIGHT Orientation) . Attached Screenshot shows the UI differences (win11_21.0.9+6_RightLeftOrientation_FAILED.png).

      Reproducible: Always
      Is it a Regression: Yes , The same test PASSED on Windows 11
               with JDK-26+10 / jdk-21.0.9+5 / JDK-17.0.17+5 / JDK-11.0.29+6

            psadhukhan Prasanta Sadhukhan
            mbollapragad Maheshkumar Bollapragada
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: