如何将条形码阅读器/扫描仪输出放入 Swing Java 开发的表单的文本区域中
我有一个带有条形码的表单。每当我用条形码阅读器读取它时,它都会在屏幕上的光标位置显示输出,而不是在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
两个选项,使表单字段在扫描之前获得焦点...或捕获键盘事件并将它们定向到表单字段。
Two options, make the form field have focus before scanning... or capture keyboard events and direct them to the form field.