public class UserNameValidator extends AbstractTextComponentValidator
| Constructor and Description |
|---|
UserNameValidator(javax.swing.text.JTextComponent tc)
Constructs a new
UserNameValidator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid()
Replies true if the current content of the decorated text component is valid;
false otherwise
|
void |
validate()
Implement in subclasses to validate the content of the text component.
|
actionPerformed, changedUpdate, feedbackDisabled, feedbackInvalid, feedbackValid, focusGained, focusLost, getComponent, insertUpdate, propertyChange, removeUpdatepublic UserNameValidator(javax.swing.text.JTextComponent tc)
UserNameValidator.tc - the text component used to enter usernamepublic boolean isValid()
AbstractTextComponentValidatorisValid in class AbstractTextComponentValidatorpublic void validate()
AbstractTextComponentValidatorvalidate in class AbstractTextComponentValidator