FileDocCategorySizeDatePackage
MetalLabelUI.javaAPI DocJava SE 5 API1327Fri Aug 26 14:58:06 BST 2005javax.swing.plaf.metal

MetalLabelUI

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.
version
1.12 12/19/03
author
Hans Muller

Fields Summary
protected static MetalLabelUI
metalLabelUI
Constructors Summary
Methods Summary
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)



         
	return metalLabelUI;
    
protected voidpaintDisabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY)
Just paint the text gray (Label.disabledForeground) rather than in the labels foreground color.

see
#paint
see
#paintEnabledText

	int mnemIndex = l.getDisplayedMnemonicIndex();
	g.setColor(UIManager.getColor("Label.disabledForeground"));
	SwingUtilities2.drawStringUnderlineCharAt(l, g, s, mnemIndex,
                                                   textX, textY);