aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Barcode Help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Barcode Help" Watch "Barcode Help" New topic
Author

Barcode Help

Tim Pan
Greenhorn

Joined: Jul 15, 2010
Posts: 1
Hi,

I am creating a UI that allows the user to enter and/or scan in a UPC code using a barcode scanner. Currently the setup is such that when the UPC code scans correctly into the desired text field, but the user must enter "tab" to proceed to the subsequent line. Is there a way that I can have the program automatically skip to the following line when a UPC is scanned??? Please Help!!! Thanks.
Mike Peters
Ranch Hand

Joined: Oct 10, 2009
Posts: 67

Often a bar code scanner finishes a scan with a new line character, maybe you could react on that. Some time ago I created a barcode scanner class which interprets the key events of the barcode scanner and turns it into an event. The timing of the input is used to decide whether it is user input or a barcode scanner input. How does your scanner deliver input to your application?


Mike Peters
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
I know zip about barcode scanners, but if you put the scanned result in the textField via setText, simply transfer the focus after setting the text


 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Barcode Help
 
Similar Threads
Field not found - need help on code
Max. Denny's DVD Project: GUIController class doubt
Dropdown List and Command button
AJAX responseText as pdf
Changing document.Check.lastBarcode.value to object in JSP javascript