
in this coding even backspace key and enter key should accept....plez help me and make changes to which it accept backspace and enter key ....plez plez plez its urgent:-(
char ch = evt.getKeyChar();
if(Character.isDigit(ch)){
}
else{
JOptionPane.showMessageDialog(null, "Only numbers are allowed!");
jTextField4.setText(" ");
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
