How can I add an "Enter Key Value" in a input field after it has been filled with data? My data is coming from a barcode reader.
I have tried to read a barcode that will set the barcode reader with an enter and a double enter key, but this doesn't work.
What I am trying to do is to automatically generate data with the given data that will be inputted in the input box, without clicking any button.
Thanks.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35253
7
posted
0
What do you mean by "add an "Enter Key Value" in a input field" - do you want to wait until the field has been populated, and then append a newline (or carriage return character) to it? if so, I think you can add an ActionListener to it; that will be called whenever the contents of the field change.