On Thu, 26 Jun 2025 14:49:16 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
>> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> MenuItem with icon fix > > src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsMenuItemUI.java > line 234: > >> 232: } >> 233: return iconPresent; >> 234: } > > This should be really simple: > > > private static boolean checkIfImageIconPresent(JMenuItem mi) { > return (mi instanceof JCheckBoxMenuItem > || mi instanceof JRadioButtonMenuItem) > && mi.getIcon() != null; > } > > > That is Have you checked this code? It doesn't work for me I get this whereby JRadioButtonMenuItem3 which doesnt have imageicon is not aligned..For this only, we need to know if other RBMIs have imageicon from ButtonGroup or if there any other way, let me know..  ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/23324#discussion_r2170694169