Good friends
I need help with a form that uses a virtual keyboard, this keyboard is in jPanel
, at the moment I have only been able to program it so that the text is entered in a single jTextFIeld
, I am looking for the way that the keyboard can write in any of the jTextField
that I have put in the form.
I hope to have explained well and beforehand thank you very much!
private void b1ActionPerformed(java.awt.event.ActionEvent evt){
String A = campo1.getText();
campo1.setText(A + "1");
}
this is the code that you assign to each button when you click on the