public class MetalLabelUI extends BasicLabelUI
Modifier and Type | Field and Description |
---|---|
protected static MetalLabelUI |
metalLabelUI
默认为
MetalLabelUI 实例。
|
labelUI
Constructor and Description |
---|
MetalLabelUI()
|
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c)
|
protected void |
paintDisabledText(JLabel l, Graphics g,
String s,
int textX, int textY)
只需将文字画成灰色(Label.disabledForeground),而不是标签前景色。
|
getBaseline,
getBaselineResizeBehavior,
getMaximumSize,
getMinimumSize,
getPreferredSize,
installComponents,
installDefaults,
installKeyboardActions,
installListeners,
installUI,
layoutCL,
paint,
paintEnabledText,
propertyChange,
uninstallComponents,
uninstallDefaults,
uninstallKeyboardActions,
uninstallListeners,
uninstallUI
contains,
getAccessibleChild,
getAccessibleChildrenCount,
update
protected static MetalLabelUI metalLabelUI
MetalLabelUI
实例。
此字段可能不会被使用。
要更改默认实例,请使用覆盖createUI
方法的子类,并将该类名称放在“LabelUI”键下的默认表中。
public static ComponentUI createUI(JComponent c)