2017-01-02 3 views

Antwort

2

Barcode Scanner Arbeits Logik ist sehr einfach (Barcode-Scanner Ausgabe Enter-Taste Ereignis oder Tabulatortaste Ereignis nach jedem Barcode-Wert zu lesen),

You can read the barcode in jtextfieled .At the End of the barcode value, Barcode scanner will automatilly trigger the enter keyevent or Tab key . 
    1 .You Can use the key event(enter or tab) to Idenntify the barcode scanning is completed or not. 
    2. Once you receive the "Enter or TAB key event" .You need to read the value from jtextfield,Using this value you can search the product related to that barcode value. 
+0

kann u bitte teilen Sie genauen Code im Zusammenhang damit? Barcodescanner in Schwung und sollte nach dem Scannen automatisch Textfeld ausfüllen, –

+1

Sie müssen keinen Code explizit zum automatischen Ausfüllen des Textfelds nach dem Scannen schreiben. Platzieren Sie den Cursor einfach in jtextfiled und scannen Sie den Barcode. Definitiv erhalten Sie den Barcode-Wert in jtextfiled. – Assen