Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

How to Set Icons on Swing Buttons

Share this post!
 Vote this!

Swing Buttons provides many exclusive features that are not found in the Button class defined in the AWT package.Swing Buttons are the subclass of AbstractButton class,which extends JComponent.You can always associate an icon of your choice with a Swing Button.The Icons are set as program runs or set when some event is fired like button pressed.AbstractButton class contains many methods that allow you to control the behaviour of buttons,check boxes and Radio Buttons.There is the way you can set the icon on the swing button and it is through the JButton constructor.                more....

0 comments:

Post a Comment