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 ...);