Hey guys,

I am having trouble with keypress event for a button that I have.
This button is programmed to do logoff operation. Now what i want is the solution or sample program in which if user is scanning the barcode of logoff then logoff event should occur.Please suggest solution or sample program in simple java

No code or app on a page to see what's going on but my scanner apps just have the keyboard wedge style scanner input to a text back and I fire an OnChange event then see if the text is complete. Then in the OnChange I can do what is needed when the input is complete.

It seems odd you want to press a button rather than just respond to what's in the input box. Ever done this before?

Priors at https://www.google.com/search?q=scanner+input+java+onchange