On Fri, 7 Feb 2025 05:28:28 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
> It seems in windows 11, the menuitem text location is dependant on presence > of menuitem icon. As per this screenshot, the bullet/checkmark seems to be in > its fixed location but text is shifted depending on menuitem icon. That's what [I said](https://github.com/openjdk/jdk/pull/23324#issuecomment-2624442850): > If we add support for painting both an ImageIcon and the bullet / check-mark, > the layout of the menu item has to change. --- > Modified the PR to look the same. Thank you. I'll test it. However, I think that all text in a popup menu should move to the right… that is all text in menu items should remain aligned if there bullets/check-marks and icons in a particular popup menu. That is the text for the third menu items for radio button and for check mark should also move. Whether all text is aligned [could be controlled by a property](https://github.com/openjdk/jdk/pull/23324#discussion_r1941070014): > We may introduce a property that controls this behaviour: whether the text > aligns in all the menu items or not. There's a sample in [the linked message](https://github.com/openjdk/jdk/pull/23324#discussion_r1941070014). ------------- PR Comment: https://git.openjdk.org/jdk/pull/23324#issuecomment-2642667698