How to implement bar code scanner in Java?
You can use this open source library.
zxing
How to Integrate Barcode Scanner into Java Inventory Management Program
It should work as if there is another keyboard attached that enters the numbers of the barcode. You just have to assure that the right input field of your program is selected.
You might want to take a look at the Programming Guide of the scanner on the Zebex Z-3110 Website.
How-to interface a barcode scanner with a Web Application?
Like Alex K. says, most scanners act like keyboards. So handling the input shouldn't be difficult.
I have seen this type of system implemented with an ActiveX control (Ewwww), but I'm assuming you would want this app to be cross-browser.
Java in the browser is as good as dead now, so an applet would most likely be out of the question.
If the scanner sends a key first you could easily bind an event listener using JavaScript to wait for that key and then take the input.
Related Topics
Drawing an Object Using Getgraphics() Without Extending Jframe
How to Build Sources Jar with Gradle
How to Scale Threads According to CPU Cores
Is It Safe to Construct Swing/Awt Widgets Not on the Event Dispatch Thread
How to Set Icon to a Jlabel from an Image from a Folder
Different Types of Thread-Safe Sets in Java
How to Create a Topic in Kafka from the Ide Using API
<Form Action="/Sampleservlet" Giving Me Exception
How to Retrieve Image from Project Folder
Java Synchronized Block for .Class
How to Determine If a Date Is Between Two Dates in Java
Select an Option from the Right-Click Menu in Selenium Webdriver - Java