@ Override public void keyPressed ( KeyEvent e ) { switch ( e . getKeyCode ( ) ) { case KeyEvent . VK_BACK_SPACE : case KeyEvent . VK_ENTER : case KeyEvent . VK_DELETE : case KeyEvent . VK_TAB : e . consume ( ) ; break ; } }
Called when a key is pressed .