Change size of ImageIcon in a JRadioButton
- by Frederik Wordenskjold
I simply want to change the size (diameter) of the actual (default) ImageIcon of my JRadioButton. I've changed the size of the font displayed in the widget, so it really looks silly with such a large radiobutton.
JRadioButton button = new JRadioButton("Button");
button.setFont(new Font("Lucida Grande",Font.PLAIN, 11));
gives me this giant button:
Do I really have to create my own ImageIcon? Or can I somehow scale the default one, without too much of a hassle?