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.
createUI(JComponent c)
Returns an instance of the UI delegate for the specified component.
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.
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
Returns an instance of the UI delegate for the specified component.
Each subclass must provide its own static createUI
method that returns an instance of that UI delegate subclass.
If the UI delegate subclass is stateless, it may return an instance
that is shared by multiple components. If the UI delegate is
stateful, then it should return a new instance per component.
The default implementation of this method throws an error, as it
should never be invoked.
paintDisabledText
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.
Submit a bug or feature For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.