On Wed, 12 Mar 2025 11:00:30 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
>> When JRadioButtonMenuItem is called with imageIcon, then only imageIcon is >> shown without radiobutton in WIndowsLookAndFeel as there was no provision of >> drawing the radiobutton alongside icon. >> If icon is not there, the radiobutton is drawn. Added provision of drawing >> the radiobutton windows Skin even when imageIcon is present. > > Prasanta Sadhukhan has updated the pull request incrementally with one > additional commit since the last revision: > > Review comments fix As far as I can see from Prasanta's and Alex's screenshots, Swing renders the icons exactly as native Win32 apps would unless menu items are owner-drawn. > Then I guess we can safely say Windows 11 has introduced this "regression" of > not highlighting the selected radio/checkmenuitem and can raise a WIndows > platform ticket This is what I've been saying from the start of this PR. Windows 11 skin for menus has lost the highlight for the checked menu item — whether it's a single selection radio-check or multiple selection checkbox-style check. This affects both Swing rendering and Win32 apps that use `MIIM_STRING | MIIM_BITMAP` and `hbmpItem` member of the `MENUITEMINFO` structure. We may seek clarification from Microsoft. ------------- PR Comment: https://git.openjdk.org/jdk/pull/23324#issuecomment-2821704740