50 |
import javax.swing.plaf.basic.BasicLabelUI; |
import javax.swing.plaf.basic.BasicLabelUI; |
51 |
|
|
52 |
/** |
/** |
53 |
* A UI delegate used for {@link JLabel}s in the {@link MetalLookAndFeel}. |
* A UI delegate for the {@link JLabel} component. |
54 |
*/ |
*/ |
55 |
public class MetalLabelUI |
public class MetalLabelUI |
56 |
extends BasicLabelUI |
extends BasicLabelUI |
57 |
{ |
{ |
58 |
|
|
59 |
/** The shared UI instance for JLabels. */ |
/** The shared instance of the UI delegate. */ |
60 |
protected static MetalLabelUI metalLabelUI; |
protected static MetalLabelUI metalLabelUI; |
61 |
|
|
62 |
/** |
/** |
63 |
* Constructs a new instance of MetalLabelUI. |
* Constructs a new instance of <code>MetalLabelUI</code>. |
64 |
*/ |
*/ |
65 |
public MetalLabelUI() |
public MetalLabelUI() |
66 |
{ |
{ |
68 |
} |
} |
69 |
|
|
70 |
/** |
/** |
71 |
* Returns an instance of MetalLabelUI. |
* Returns a shared instance of <code>MetalLabelUI</code>. |
72 |
* |
* |
73 |
* @param component the component for which we return an UI instance |
* @param component the component for which we return an UI instance |
74 |
* |
* |
75 |
* @return an instance of MetalLabelUI |
* @return A shared instance of <code>MetalLabelUI</code>. |
76 |
*/ |
*/ |
77 |
public static ComponentUI createUI(JComponent component) |
public static ComponentUI createUI(JComponent component) |
78 |
{ |
{ |