从 Java 读取条形码

发布于 2024-08-30 21:16:45 字数 134 浏览 5 评论 0原文

我正在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夢归不見 2024-09-06 21:16:45

我认为条形码阅读器(硬件)可以编程为在读取完成后不发送返回。它们通常通过读取用户手册中的条形码进行编程。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文