public final class TextFieldHint
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static TextFieldHint |
enable(javax.swing.JTextField textField,
java.lang.String hintText)
Enables the search hint for the given field
|
static TextFieldHint |
enable(javax.swing.JTextField textField,
java.lang.String hintText,
java.awt.Color hintForegroundColor)
Enables the search hint for the given field
|
java.lang.String |
getHintText() |
boolean |
isHintTextVisible() |
public java.lang.String getHintText()
public boolean isHintTextVisible()
public static TextFieldHint enable(javax.swing.JTextField textField, java.lang.String hintText)
textField
- the text fieldhintText
- the hint textpublic static TextFieldHint enable(javax.swing.JTextField textField, java.lang.String hintText, java.awt.Color hintForegroundColor)
textField
- the text fieldhintText
- the hint texthintForegroundColor
- the font color for the hint text