Search code examples
javabarcodejtextfield

Reading barcodes from Java


I'm dealing with a barcode reader in my java app. The problem is that the barcode, before and after reading and sending the actual barcode, sends a return code. I've some JTextFields and when the reader reads the barcode it change the focus, and then sends another return that makes the window to close. Is it anyway to "intercept" those "return" commands ?


Solution

  • I think barcode readers (the hardware) can be programmed to not send returns after a read has been completed. They are generally programmed through reading barcodes from its user manual.