dcsimg

How do I clear an icon set on a JButton?

John Zukowski

To remove the icon displayed on a JButton, call the setIcon() method with an argument of null:

aButton.setIcon(null);