如何将条形码阅读器/扫描仪输出放入 Swing Java 开发的表单的文本区域中

发布于 2024-08-05 06:34:53 字数 92 浏览 1 评论 0原文

我有一个带有条形码的表单。每当我用条形码阅读器读取它时,它都会在屏幕上的光标位置显示输出,而不是在 Swing Java 开发的表单的文本区域中显示输出。为此我该怎么办?

I have one form with the BarCode on it.Whenever I read it by BarCode reader,it shows me the output at the cursor position on screen instead of showing it at the textarea on the form developed in Swing Java. What should I do for this ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

彡翼 2024-08-12 06:34:53

两个选项,使表单字段在扫描之前获得焦点...或捕获键盘事件并将它们定向到表单字段。

Two options, make the form field have focus before scanning... or capture keyboard events and direct them to the form field.

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