PropertyChangeListener, EventListener
public class MetalLabelUI extends BasicLabelUI
| Modifier and Type | Field | Description | 
|---|---|---|
| protected static MetalLabelUI | metalLabelUI | The default  MetalLabelUIinstance. | 
labelUI
| Constructor | Description | 
|---|---|
| MetalLabelUI() | Constructs a  MetalLabelUI. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static ComponentUI | createUI | Returns an instance of  MetalLabelUI. | 
| protected void | paintDisabledText | Just paint the text gray (Label.disabledForeground) rather than in the labels foreground color. | 
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, layoutCL, paint, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize, installUI, uninstallUI, update
protected 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 MetalLabelUI()
MetalLabelUI.public static ComponentUI createUI(JComponent c)
MetalLabelUI.c - a componentMetalLabelUI
protected void paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
paintDisabledText in class BasicLabelUI
l - an instance of JLabel
g - an instance of Graphics
s - a texttextX - an X coordinatetextY - an Y coordinate
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/metal/MetalLabelUI.html