RFR: 8371508: [macos] In Aqua LaF menu items layout is incorrect in RTL orientation [v2]
Tejesh R
tr at openjdk.org
Tue Nov 11 04:55:06 UTC 2025
On Sat, 8 Nov 2025 23:26:19 GMT, Alexander Zuev <kizune at openjdk.org> wrote:
>> The problem is that we do not correct the icon and text re-alignment that happens when we call SwingUtilities.layoutCompoundLabel
>>
>> Here's the comparison of the alignment before and after the fix
>> Before:
>> <img width="708" height="788" alt="before_fix" src="https://github.com/user-attachments/assets/9bcd3fb1-5186-45ea-98d9-d2bc534ca51e" />
>> After:
>> <img width="708" height="788" alt="after_fix" src="https://github.com/user-attachments/assets/ec6dfdf5-a515-4ef6-b70d-cc4019e00826" />
>
> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision:
>
> Use correct bug id in the test.
test/jdk/javax/swing/JMenuItem/RightLeftOrientation.java line 60:
> 58: * @test id=aqua
> 59: * @bug 8371508
> 60: * @requires (os.family == "mac")
I guess now the test can be run in window and mac OS ? Any idea on Nimbus L&F in windows os ?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28210#discussion_r2512828684
More information about the client-libs-dev
mailing list