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);
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact