javax.swing.plaf.metal
public class MetalLabelUI extends BasicLabelUI
Field Summary | |
---|---|
protected static MetalLabelUI | metalLabelUI The shared instance of the UI delegate. |
Constructor Summary | |
---|---|
MetalLabelUI()
Constructs a new instance of MetalLabelUI . |
Method Summary | |
---|---|
static ComponentUI | createUI(JComponent component)
Returns a shared instance of MetalLabelUI .
|
protected void | paintDisabledText(JLabel l, Graphics g, String s, int textX, int textY)
Draws the text for a disabled label, using the color defined in the
{@link UIManager} defaults with the key
Label.disabledForeground .
|
MetalLabelUI
.MetalLabelUI
.
Parameters: component the component for which we return an UI instance
Returns: A shared instance of MetalLabelUI
.
Label.disabledForeground
.
Parameters: l the label. g the graphics device. s the label text. textX the x-coordinate for the label. textY the y-coordinate for the label.