This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCheckbox

 
Venkatramani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Madhav
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic