Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to increase the icon size in radioButton

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all want to increase the size of the icon in radion button /checkbox.
if i setDimestion it's not actually increases the icon size in radio button.
how can i increase the size of the icon
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be useful: Toggle Button Icons.

Alternatively, you could create your own Icon implementation and set that as the default using UIManager.put(...). If you're in need of inspiration, read the source of javax.swing.plaf.metal.MetalIconFactory.RadioButtonIcon / CheckBoxIcon.

Not sure which method you're referring to as
setDimestion
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
resolved by setting customized icons.

 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. If you've created so many Icons to substitute the single Icon in MetalIconFactory, it looks like you've missed the point that one of the parameters to the Icon method paintIcon(...) is the Component to which the Icon is to be painted.

2. If customize the LaF using UIManager.put(...) you shouldn't need to invoke setIcon(...) at all.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic