从 Java 读取条形码
我正在我的 java 应用程序中处理条形码阅读器。问题在于,在读取和发送实际条形码之前和之后,条形码会发送返回码。我有一些 JTextFields,当阅读器读取条形码时,它会改变焦点,然后发送另一个返回,使窗口关闭。无论如何要“拦截”那些“返回”命令吗?
I'm dealing with a barcode reader in my java app. The problem is that the barcode, before and after reading and sending the actual barcode, sends a return code. I've some JTextFields and when the reader reads the barcode it change the focus, and then sends another return that makes the window to close. Is it anyway to "intercept" those "return" commands ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为条形码阅读器(硬件)可以编程为在读取完成后不发送返回。它们通常通过读取用户手册中的条形码进行编程。
I think barcode readers (the hardware) can be programmed to not send returns after a read has been completed. They are generally programmed through reading barcodes from its user manual.