apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.63k stars 840 forks source link

Avoid a missing JCheckBoxItem checkmark for boolean actions without an icon #7474

Closed eirikbakke closed 1 month ago

eirikbakke commented 2 months ago

In menu bars, a boolean action will become a JCheckBoxMenuItem which can work with or without a custom icon. If the action has no icon of its own, the LAF will provide a checkmark icon instead, which is good. But due to a bug in org.openide.awt.Actions, a blank icon is used instead. Fix this so the checkmark properly appears in this case.

(Mostly relevant for NetBeans Platform apps; I haven't seen this case appear in the NetBeans IDE.)

eirikbakke commented 1 month ago

Thanks for testing!