public void dumpKeyEvent (KeyEvent e) { System.out.print(" ID=" + e.getID()); System.out.print(" KeyCode=" + e.getKeyCode()); System.out.print(" KeyChar=\"" + e.getKeyChar() + "\" " + (int)e.getKeyChar()); System.out.println(); }Just insert a call to dumpKeyEvent in each of your three keystroke event handler methods.
![]() |
![]() |
![]() |
|
Canadian Mind Products | The Mining Company's Focus on Java Best of the Net Award |
You can get an updated copy of this page from http://mindprod.com/jglossk.html |