key scanner « Event « Java Swing Q&A





1. Global keyboard reading (for barcode scanner)    coderanch.com

I am going to use a barcode scanner device that simulates keyboard input (i.e. the system thinks it's a keyboard). All my barcodes begin with a specific prefix (say, "@#@") and end with a specific suffix, which is how I differentiate them from the actual keyboard input. I need to listen to barcodes globally across the application, which can be accomplished ...