Is it possible to increase the size of the square of a JCheckBox or the circle of a JRadioButton.

Sandip Chitale

The JCheckBox and JRadioButton are subclasses of JToggleButton. The square of the JCheckBox is nothing but an Icon. Thus you can change it to any other icon that you like by simply setting the following properties -


setIcon(Icon ...);
setSelectedIcon(Icon ...);

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


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

 

 

About | Sitemap | Contact