aspose file tools*
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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JCheckbox" Watch "JCheckbox" New topic
Author

JCheckbox

Venkatramani
Greenhorn

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
Venkatramani
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!!


Dave
Madhav
Greenhorn

Joined: Jul 08, 2001
Posts: 11
hi,
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.
regards,
madhav
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JCheckbox