PropertyChangeListener, EventListenerpublic class MetalLabelUI extends BasicLabelUI
| Modifier and Type | Field | Description |
|---|---|---|
protected static MetalLabelUI |
metalLabelUI |
The default
MetalLabelUI instance. |
labelUI| Constructor | Description |
|---|---|
MetalLabelUI() |
| Modifier and Type | Method | Description |
|---|---|---|
static ComponentUI |
createUI(JComponent c) |
Returns an instance of
MetalLabelUI. |
protected void |
paintDisabledText(JLabel l,
Graphics g,
String s,
int textX,
int textY) |
Just paint the text gray (Label.disabledForeground) rather than
in the labels foreground color.
|
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 instance. This field might
not be used. To change the default instance use a subclass which
overrides the createUI method, and place that class
name in defaults table under the key "LabelUI".public static ComponentUI createUI(JComponent c)
MetalLabelUI.c - a componentMetalLabelUIprotected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
paintDisabledText in class BasicLabelUIl - an instance of JLabelg - an instance of Graphicss - a texttextX - an X coordinatetextY - an Y coordinateBasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent),
BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int) 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, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2