AUTOCLICKING A BUTTON IN JAVA. PLEASE HELP!

0 John Lester Mercado · September 7, 2015
I am working on a library project using an RFID scanner. So the RFID scanner will input the code number to the 
textfield as long as the cursor is on it. So my problem is I want my JAVA project to be like any RFID system that
you just need to swipe the RFID card and you are logged in. Please help me how can I automatically press enter
or click the button when the textfield detected that the RFID code/text is on the textfield already. This means a
lot. Thank you everyone.

Post a Reply

Replies

Oldest  Newest  Rating
0 Branislav Lazic · September 7, 2015
Write text property change listener for your textfield or simply use document listener. Take a look at this SO question: http://stackoverflow.com/questions/14506753/java-propertychangelistener-for-jtextarea-no-response
 
  • 1

Java / Android Development

107,265 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator