RFR: 8370945: With Windows LAF, the location of a JMenuItem icon is incorrect
Alexey Ivanov
aivanov at openjdk.org
Tue Feb 17 11:35:40 UTC 2026
On Tue, 17 Feb 2026 10:45:27 GMT, Daishi Tabata <dtabata at openjdk.org> wrote:
> However, after this change, for menu items without radio buttons or checkboxes, the red squares and the text are misaligned compared to the others.
> Is this an expected behavioral change introduced by this fix?
This was the question I had, but I didn't have time yesterday to run additional tests.
I strongly believe it shouldn't be like this. The icons have to remain aligned.
There's one more case: What if there are `JRadioButtonMenuItem` or `JCheckBoxMenuItem` (or both) that don't have any icons? I think the check mark and bullets should be rendered as they were before [JDK-8348760](https://bugs.openjdk.org/browse/JDK-8348760), that is the icons of other menu items and the check mark and bullets should remain in one column.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29730#issuecomment-3914177391
More information about the client-libs-dev
mailing list