Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/309.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用扫描仪的Swing应用程序条形码阅读器_Java_Swing_Barcode - Fatal编程技术网

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

Java 使用扫描仪的Swing应用程序条形码阅读器,java,swing,barcode,Java,Swing,Barcode,我正在制作一个JavaDektop应用程序,其中我需要从物理产品中读取一些条形码,并在jtextfield中设置。 我找到了一个参考,但没有找到代码 参考链接是: 所以请为我提供更好的解决方案 谢谢,这是事先准备好的。 吉滕德拉·马尔维亚 电子邮件id:jitendramalviya39@gmail.com条形码扫描器的工作逻辑非常简单(条形码扫描器在读取每个条形码值后发出Enter key事件或Tab key事件) 条形码扫描器工作逻辑非常简单(条形码扫描器在读取每个条形码值后发出输入键事件或

我正在制作一个JavaDektop应用程序,其中我需要从物理产品中读取一些条形码,并在jtextfield中设置。 我找到了一个参考,但没有找到代码

参考链接是:

所以请为我提供更好的解决方案

谢谢,这是事先准备好的。 吉滕德拉·马尔维亚
电子邮件id:jitendramalviya39@gmail.com

条形码扫描器的工作逻辑非常简单(条形码扫描器在读取每个条形码值后发出Enter key事件或Tab key事件)


条形码扫描器工作逻辑非常简单(条形码扫描器在读取每个条形码值后发出输入键事件或Tab键事件)


你能分享与此相关的确切代码吗??swing中的条形码扫描仪应在扫描后自动填充文本框,无需显式编写任何代码即可在扫描后自动填充文本框。只需将光标放在jtextfield中并扫描条形码。您肯定会在jtextfield中获得条形码值。您能分享与此相关的确切代码吗??swing中的条形码扫描仪应在扫描后自动填充文本框,无需显式编写任何代码即可在扫描后自动填充文本框。只需将光标放在jtextfield中并扫描条形码。您肯定会在jtextfield中获得条形码值。。
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.