javax.swing.plaf.metal
Class MetalCheckBoxUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
javax.swing.plaf.basic.BasicRadioButtonUI
javax.swing.plaf.metal.MetalRadioButtonUI
javax.swing.plaf.metal.MetalCheckBoxUI
public class MetalCheckBoxUI
- extends MetalRadioButtonUI
A UI delegate for the JCheckBox
component.
Constructor Summary |
MetalCheckBoxUI()
Constructs a new instance of MetalCheckBoxUI. |
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI |
clearTextShiftOffset, createButtonListener, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetalCheckBoxUI
public MetalCheckBoxUI()
- Constructs a new instance of MetalCheckBoxUI.
createUI
public static ComponentUI createUI(JComponent component)
- Returns a shared instance of
MetalCheckBoxUI
.
- Parameters:
component
- the component for which we return an UI instance
- Returns:
- A shared instance of
MetalCheckBoxUI
.
getPropertyPrefix
public String getPropertyPrefix()
- Returns the prefix for properties defined in the
UIDefaults
table.
- Overrides:
getPropertyPrefix
in class BasicRadioButtonUI
- Returns:
- The property prefix (
"CheckBox."
).