RFR: 8374506: Incorrect positioning of arrow icon in parent JMenu in Windows L&F

Alexey Ivanov aivanov at openjdk.org
Fri Jan 30 20:20:10 UTC 2026


On Fri, 23 Jan 2026 05:11:37 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Arrow icon of JMenuItem in JMenu which is used to invoke the submenu overlaps with the menutext if the text is long.
> 
> Fix is made to add a gap for arrow icon rect too similar to menu text and accelerator rects

> > The popup menu has to become wider if both check marks / bullets and icons are rendered at the same time.
>
> I am approving it as a stopgap solution but the overall we might want to re-visit how we calculate layouts of menu items to make it look more like a OS native menus.

I've now submitted [JDK-8376828](https://bugs.openjdk.org/browse/JDK-8376828): *Improve JMenuItem layout in Windows L&F*.

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

PR Comment: https://git.openjdk.org/jdk/pull/29375#issuecomment-3825552367


More information about the client-libs-dev mailing list