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, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, updateprotected static MetalLabelUI metalLabelUI
MetalLabelUI实例。
此字段可能不会被使用。
要更改默认实例,请使用覆盖createUI方法的子类,并将该类名称放在“LabelUI”键下的默认表中。
public static ComponentUI createUI(JComponent c)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.