读取COM端口值并在位于Java面板内的textArea中打印 [英] reading COM port value and printing in textArea which located inside the panel in java
本文介绍了读取COM端口值并在位于Java面板内的textArea中打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须读取一个COM端口,并且数据应该动态显示在TextArea中(数据将每分钟显示一次),这是我在JPanel中创建的。
I have to read a COM port and the data should be displayed inside the TextArea dynamically (data will come every minute), which I have created inside JPanel.
提前感谢您的答复。
推荐答案
要从串行端口读取,请在此处查看javacomm API: http://java.sun.com/products/javacomm/
For reading from the serial port, have a look at the javacomm API here: http://java.sun.com/products/javacomm/
《用户指南》提供了更多信息和一些示例代码: http://java.sun.com/products/javacomm/reference/docs/API_users_guide_3.html
The User's Guide has more information and some example code: http://java.sun.com/products/javacomm/reference/docs/API_users_guide_3.html
这篇关于读取COM端口值并在位于Java面板内的textArea中打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文