|
JTextField problem
Hi everyone
I'm making a small program using Java. As part of this, the user is able to enter text in a JTextField (in a JPanel).
My problem is, the only way that the actionlistener will activate is if a person entering text presses 'enter' on their keyboard. This works for testing, but for the actual program, it's counter-intuitive.
Does anyone know a better way of entering text? Ideally it would update everytime the user enters even a single letter.
|