RFR: 8277369: Strange behavior of JMenuBar with RIGHT_TO_LEFT orientation, arrow keys behaves opposite traversing through keyboard
Sergey Bylokhov
serb at openjdk.java.net
Thu Feb 10 23:04:10 UTC 2022
On Wed, 9 Feb 2022 05:39:52 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> After applying setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT) to the JMenuBar the arrow keys started to behave the opposite of what expected. Right arrow goes left and Left arrow goes right when trying to traverse through keyboard.
>
> Fixed to reverse the direction traversal for RTL orientation.
test/jdk/javax/swing/JMenuBar/MenuBarRTLBug.java line 70:
> 68: static volatile boolean passed = false;
> 69:
> 70: public static void main(String[] args) throws Exception {
The submitter said that he use the native L&F should not we check it in the test?
-------------
PR: https://git.openjdk.java.net/jdk/pull/7396
More information about the client-libs-dev
mailing list