public class MetalLabelUI extends BasicLabelUI
Modifier and Type | Field and Description |
---|---|
protected static MetalLabelUI |
metalLabelUI
The default
MetalLabelUI instance. |
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)
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, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, 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 static ComponentUI createUI(JComponent c)
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 coordinateBasicLabelUI.paint(java.awt.Graphics, javax.swing.JComponent)
,
BasicLabelUI.paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.