RFR: 8277369: Strange behavior of JMenuBar with RIGHT_TO_LEFT orientation, arrow keys behaves opposite traversing through keyboard [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Fri Feb 11 08:08:52 UTC 2022


> 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.

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  Added L&F iteration

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/7396/files
  - new: https://git.openjdk.java.net/jdk/pull/7396/files/8afcf220..19b72d40

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7396&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7396&range=00-01

  Stats: 173 lines in 1 file changed: 88 ins; 71 del; 14 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7396.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7396/head:pull/7396

PR: https://git.openjdk.java.net/jdk/pull/7396



More information about the client-libs-dev mailing list