reading COM port value and printing in textArea which located inside the panel in java

后端 未结 3 760
旧巷少年郎
旧巷少年郎 2021-01-25 08:02

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 Tha

3条回答
  •  没有蜡笔的小新
    2021-01-25 08:41

    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

提交回复
热议问题