我正在尝试使用 Nimbus Look&Feel 更改 CheckBoxMenuItem 的图标。
UIManager.put("CheckBoxMenuItem[Selected].checkIcon", new ImageIcon(getClass().getResource("/packagename/images/unchecked-icon.png")));
这适用于选中的复选框,但未选中的复选框的状态是什么?
我正在尝试使用 Nimbus Look&Feel 更改 CheckBoxMenuItem 的图标。
UIManager.put("CheckBoxMenuItem[Selected].checkIcon", new ImageIcon(getClass().getResource("/packagename/images/unchecked-icon.png")));
这适用于选中的复选框,但未选中的复选框的状态是什么?