reading COM port value and printing in textArea wh

2019-03-01 15:27发布

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.

Advance Thanks for reply.

标签: java core
3条回答
趁早两清
2楼-- · 2019-03-01 15:52

For a multi-platform application, look into rxtx.

javax.comm has not had active development for a number of years. The rxtx project has a compatible api as well as a more feature rich gnu package API.

There are examples with the source code and in the Wiki.

查看更多
ら.Afraid
3楼-- · 2019-03-01 16:06

For reading from the serial port, have a look at the javacomm API here: http://java.sun.com/products/javacomm/

The User's Guide has more information and some example code: http://java.sun.com/products/javacomm/reference/docs/API_users_guide_3.html

查看更多
Lonely孤独者°
4楼-- · 2019-03-01 16:08

Some leads:

查看更多
登录 后发表回答