简体   繁体   English

使用扫描仪扫描应用程序条形码阅读器

[英]Swing Application Barcode reader using Scanner

I am making an java dektop application, in which i need to read some barcode from physical product and set in jtextfield. 我正在制作一个Java dektop应用程序,在该应用程序中,我需要从物理产品中读取一些条形码并在jtextfield中进行设置。 I found one reference but not code. 我找到了一个参考,但没有找到代码。

reference link is: https://youtu.be/AJS_kGRJ_Xg 参考链接是: https : //youtu.be/AJS_kGRJ_Xg

So please suggest me better solution for this. 因此,请为此提出更好的解决方案。

Thank's In Advance. 提前致谢。 Jitendra Malviya Email id: jitendramalviya39@gmail.com Jitendra Malviya电子邮件ID:jitendramalviya39@gmail.com

Barcode Scanner Working logic is very simple (Barcode scanner issue Enter key event or Tab key event after reading each barcode value ), 条形码扫描器的工作逻辑非常简单(条形码扫描器在读取每个条形码值后会发出Enter键事件或Tab键事件),

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.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM