JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
All Implemented Interfaces:
PropertyChangeListener
, EventListener
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.
Field Summary
Fields
Modifier and Type
Field
Description
protected static MetalLabelUI
metalLabelUI
The default MetalLabelUI
instance.
Method Summary
Methods declared in class javax.swing.plaf.basic.BasicLabelUI
getBaseline , getBaselineResizeBehavior , getMaximumSize , getMinimumSize , installComponents , installDefaults , installKeyboardActions , installListeners , layoutCL , paint , paintEnabledText , uninstallComponents , uninstallDefaults , uninstallKeyboardActions , uninstallListeners
Methods declared in class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Detail
metalLabelUI
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".
Constructor Detail
MetalLabelUI
public MetalLabelUI()
Method Detail
paintDisabledText
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.
Overrides:
paintDisabledText
in class BasicLabelUI
Parameters:
l
- an instance of JLabel
g
- an instance of Graphics
s
- a text
textX
- an X coordinate
textY
- an Y coordinate
See Also:
BasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent)
,
BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2018, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.