Problem with jframe, serial communication, dynamic changing value and displaying it
posted 6 years ago
Good morning for all. I am new on this forum, but earlier, im search here, and find, many answers for my problem. But today i have problem who boring me long time.
I use a library to comunicate via serial. I use RXTX library. The library good work, in console app. I send a message via virtual serial port, and have recieved earlier sended message.
Here is the code:
But the problem is when i want make a graphical application (Show recieved message in jLabel or other component). Im don't know how make this code, to show dynamic recieved messages sended via serial port, without clicking a button.
When i send text to serial port : coderanch i recieve coderanch and have showed in a component. Or i in the same moment and window i send 10 time text coderach in the same window, I see sended text. I use rs232 ttl to USB converter. Best regards Krzysztof