Class TextPrompt

java.lang.Object
All Implemented Interfaces:
FocusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener, SwingConstants

public class TextPrompt extends JLabel implements FocusListener, DocumentListener
The TextPrompt class will display a prompt over top of a text component when the Document of the text field is empty. The Show property is used to determine the visibility of the prompt. The Font and foreground Color of the prompt will default to those properties of the parent text component. You are free to change the properties after class construction.
See Also: