public class

MetalLabelUI

extends BasicLabelUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.LabelUI
       ↳ javax.swing.plaf.basic.BasicLabelUI
         ↳ javax.swing.plaf.metal.MetalLabelUI

Class Overview

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.

Summary

Fields
protected static MetalLabelUI metalLabelUI The default MetalLabelUI instance.
[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicLabelUI
Public Constructors
MetalLabelUI()
Public Methods
static ComponentUI createUI(JComponent c)
Protected Methods
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.
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicLabelUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object
From interface java.beans.PropertyChangeListener

Fields

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 Constructors

public MetalLabelUI ()

Public Methods

public static ComponentUI createUI (JComponent c)

Protected Methods

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.