File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


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
 
GeeCON Prague 2014
 
subject: JCheckbox