Home > Back-end >  Java - key event
Java - key event

Time:09-20


Problem: the text box to add key event, is redundant, I made a experiment and direct text box input 0 feel all the same, want to ask, is there any difference between them
Thank you bosses!!!!!!
The TextField t=new TextField ();
Public void keyReleased KeyEvent (e) {
If (um participant etKeyCode ()==KeyEvent. VK_0)
T.s etText (t.g etText () + "0");
}
  • Related