public class FldInputVerifier
extends javax.swing.InputVerifier
implements java.awt.event.KeyListener
Constructor and Description |
---|
FldInputVerifier(java.awt.Component c,
Field fld) |
Modifier and Type | Method and Description |
---|---|
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
boolean |
verify(javax.swing.JComponent c) |
public FldInputVerifier(java.awt.Component c, Field fld)
c
- The Swing component to listen to.fld
- The Field to be validated.public boolean verify(javax.swing.JComponent c)
verify
in class javax.swing.InputVerifier
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
KeyListener