This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Barcode input Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Barcode input " Watch "Barcode input " New topic
Author

Barcode input

Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75
I have a swing interface and the UI captures events from either a Barcode Gun or a keyboard.
Consider it to be a simple POS scenario where the product barcodes are scanned.

Now my question is how can we detect the barcode scan such that once the product Barcode is scanned it populates the product details unlike typing in the product barcode and then hitting submit /enter.

How can we in other wise detect the barcode submit signal.

Ivan Bisevac
Ranch Hand

Joined: Jan 04, 2010
Posts: 48

Dushyant Chhetri wrote:I have a swing interface and the UI captures events from either a Barcode Gun or a keyboard.
Consider it to be a simple POS scenario where the product barcodes are scanned.

Now my question is how can we detect the barcode scan such that once the product Barcode is scanned it populates the product details unlike typing in the product barcode and then hitting submit /enter.

How can we in other wise detect the barcode submit signal.



You don't have to detect barcode submit signal. Just go to text field where you want to insert barcode, then scan product with barcode scanner and text field will populate with barcode value..
 
jQuery in Action, 2nd edition
 
subject: Barcode input
 
Similar Threads
extracting a portion of number from a string
Barcode Reading using Java
JPA Optimistic Concurrency for Detached Object
barcode in jsp
Read from barcode readers