@Override
	public void setIcon(Icon newIcon) {
		Icon disabledIcon = ResourceManager.getDisabledIcon(newIcon);
		setDisabledIcon(disabledIcon);
		super.setIcon(newIcon);
	}
A drop-in replacement for {@link JButton} that correctly installs a disabled icon.
Ghidra/Framework/Docking/src/main/java/docking/widgets/button/GButton.java