简体   繁体   English

如何将BarCode读取器/扫描器输出放入使用Swing Java开发的表单的文本区域中

[英]How to put the BarCode reader/scanner output in textarea of form developed in 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. 我有一个带有BarCode的表单。每当我由BarCode读取器阅读它时,它就会在屏幕上光标位置显示输出,而不是在Swing Java开发的表单上的文本区域显示输出。 What should I do for this ? 我该怎么办?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM