This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
protected void updateButtonIcon() {
Object i = null;
Object obj = action.getValue("noIconInMenu");
if (Boolean.TRUE.equals(obj)) {
button.setIcon(nonNullIcon(null));
return;
}
if (action instanceof SystemAction) {
SystemAction sa = (SystemAction)action;
i = sa.getIcon (useTextIcons ());