posted 21 years ago
I have a question about KeyEvent: I add a KeyListener to a JTable. To prohibit user modifing the data in JTable, I attempt to capture a KeyEvent and pop up a warning message when an user types keyboard to modify some data in JTable. I hope whatever user type which key the warning message would pop up and stop the modifing. How to do that???
My code was show bellow: