This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes JCheckbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JCheckbox" Watch "JCheckbox" New topic



Joined: Sep 18, 2001
Posts: 2
how can I increase the size of the area of JCheckbox where the check appears? Increasing the size of the JCheckbox seems to be inrcreasing only the size of the surrounding area
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!


Joined: Jul 08, 2001
Posts: 11
Have u tried
setPreferredSize(Dimension preferredSize) method of JComponent?
JChekBox myCheckBox = new JCheckBOx();
myCheckBox.setPreferedSize(new Dimension(100,100));
I think it would give you the size u want.
I agree. Here's the link:
subject: JCheckbox
It's not a secret anymore!