I need to read the COM port, and the data should be displayed inside TextArea dynamically (data arrives every minute) that I created inside JPanel.
Thank you for your reply.
Some conclusions:
To read from the serial port, see the javacomm API here: http://java.sun.com/products/javacomm/
The User Guide contains additional information and sample code: http://java.sun.com/products/javacomm/reference/docs/API_users_guide_3.html
For a multi-platform application, check out rxtx .
javax.comm not been actively developed for several years. The rxtx project has a compatible api, as well as a more feature-rich gnu API.
javax.comm
gnu
There are examples with source code in the Wiki.
Source: https://habr.com/ru/post/1315234/More articles:How to draw a selection around the mouse cursor - objective-cCRC-16-ANSI library for Java / Groovy? - javadjango: ImageField, MEDIA_ROOT, MEDIA_URL, how to install correctly - djangoIs there a problem with deep bone? - pythonCalculating CRC in Java - javaToggle thumb on user device volume button - androidjQuery - find the 1st element with a specific class on top, but not in front of another element - jqueryUser interface issues regarding embedded PDFs - user-interfaceBlank black screen when starting iPad application - objective-cHow to be ready Python 3? - coding-styleAll Articles