View Single Post
Old 09-19-2012, 02:25 AM   PM User | #1
Atlan
New Coder

 
Join Date: Jul 2012
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
Atlan is an unknown quantity at this point
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.
Atlan is offline   Reply With Quote