public final class NumericInputHandler extends KeyAdapter
Constructor and Description |
---|
NumericInputHandler(int numChar)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
keyTyped(KeyEvent e)
determine whether a key press is processed or not
|
keyPressed, keyReleased
public NumericInputHandler(int numChar)
numChar
- no. of characters allowedpublic void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
keyTyped
in class KeyAdapter
e
- a key event