InputVerifier is an abstract class introduced in SDK 1.3. Subclasses of InputVerifier can be attached to JComponents to control whether they are willing to give up focus. Typically, this is done to force the user to put a component in a "valid" state before allowing the user to transfer focus to another component. A brief example of using an InputVerifier with a JFormattedTextField appeared earlier in this chapter. (See the focusLostBehavior property of the JFormattedTextField class.) 20.10.1 Public Methods
|