Icon
, UIResource
public class RadioButtonMenuItemIcon extends Object implements Icon, UIResource
JRadioButtonMenuItem
s.Constructor | Description |
---|---|
RadioButtonMenuItemIcon(JMenuItem menuItem,
int size) |
Creates a new icon.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getIconHeight() |
|
int |
getIconWidth() |
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public RadioButtonMenuItemIcon(JMenuItem menuItem, int size)
menuItem
- The corresponding menu item.size
- The size of this
icon.public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon