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.