RFR: 8370465: Right to Left Orientation Issues with MenuItem Component [v4]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Thu Oct 30 02:17:00 UTC 2025
On Wed, 29 Oct 2025 23:00:35 GMT, Alexander Zuev <kizune at openjdk.org> wrote:
>> Actually I have modified the PR to rectify layouting ensuring radiobutton bullet/checkmark are drawn at dedicated position and doesn't interfere with icon position for RTL too..Previous PR iteration was not taking into account of this for RTL so if the menuitem was selected in RTL, it was not shown..
>
> I just tested the latest version of the fix with the slightly modified test case (i added two extra menu items with
> `menuItem.setHorizontalTextPosition(SwingConstants.LEFT);`
> and
> `menuItem.setHorizontalTextPosition(SwingConstants.RIGHT);`
> and it does not look exactly correct. Here's the screenshot:
> <img width="331" height="511" alt="image" src="https://github.com/user-attachments/assets/8494241e-aefd-4259-bcb2-8b3cf2360d7d" />
Fixed..it now looks ok to me...Please check
<img width="391" height="614" alt="image" src="https://github.com/user-attachments/assets/46661a18-947b-4483-969d-c7d05ace3ff0" />
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27968#discussion_r2476200429
More information about the client-libs-dev
mailing list