| javax.swing.JLabel org.underworldlabs.swing.DisabledField
DisabledField | public class DisabledField extends JLabel (Code) | | A convenience class providing a simple component
to display text within a rectangle achieving the same
effect as displayed when disabling a JTextField
under the Metal L&F. This will provide a common 'disabled'
component across all L&Fs that remains lightweight and does
not feature or require those methods as would be available
using a JTextField .
Some limitations have been deliberately introduced. The
component height will always be 19px. The width is determined
as specified or by the layout manager. In any case, This
component's size should not require any modification given its
limited design and purpose.
author: Takis Diakoumis version: $Revision: 1.4 $ |
Inner Class :class DisabledBorder extends LineBorder | |
Constructor Summary | |
public | DisabledField() Creates a new instance with the text to be
displayed as blank. | public | DisabledField(String text) Creates a new instance with the specified
text to be displayed. |
DisabledField | public DisabledField()(Code) | | Creates a new instance with the text to be
displayed as blank.
|
DisabledField | public DisabledField(String text)(Code) | | Creates a new instance with the specified
text to be displayed.
Parameters: the - text to display |
|
|