I use Netbeans form template to build gui and add Keypress event on form(right-click > Event > KeyPressed) like a code below. But it seems System.out.print or another action does not perform anything. So how should I do to fix this problem?
private void formKeyPressed(java.awt.event.KeyEvent evt) {
char PressedChar = evt.getKeyChar();
System.out.print(PressedChar);
}