I have a problem with actionListener (keyPressed) on TextField. That's the method which is called after key is pressed but it doesn't change character in TextField:
private void checkIfTypingDots(java.awt.event.KeyEvent kev) {
int keyCode = kev.getKeyCode();
if(keyCode == KeyEvent.VK_COMMA) {
kev.setKeyCode(KeyEvent.VK_PERIOD);
}
}
How can I dynamically change comma to dot in TextField by event - keyPressed?