1 year ago

#184600

test-img

shnnens

Change the size of a Swing checkbox

I am trying to make the checkbox bigger. It looks smaller according to the text. How can I do that?

enter image description here

My code looks like this:

JCheckBox checkBox = new JCheckBox(new VisibleAction(name,renderer,i));
checkBox.setSelected(true);
renderer.setSeriesVisible(i, true);
checkBox.setFont(controlPanelFont); 

java

swing

jcheckbox

0 Answers

Your Answer

Accepted video resources