This section illustrates you how to show the icon on the button in Java Swing.
This program sets the icon on the button in Java Swing.
Following is the output of the program:
Above method sets the specified Icon on the button.
Above code creates an object of image.
Here is the code of the program:
Posted on: April 14, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles