public class MetalLabelUI extends BasicLabelUI
A Windows L&F implementation of LabelUI. This implementation is completely static, i.e. there's only one UIView implementation that's shared by all JLabel objects.
protected static MetalLabelUI metalLabelUI
The default 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()
public static ComponentUI createUI(JComponent c)
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.
paintDisabledText
in class BasicLabelUI
BasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent)
, BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)
© 1993–2017, 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.