wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Problem with jframe, serial communication,  dynamic changing value and displaying it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with jframe, serial communication,  dynamic changing value and displaying it" Watch "Problem with jframe, serial communication,  dynamic changing value and displaying it" New topic
Author

Problem with jframe, serial communication, dynamic changing value and displaying it

krzysiek koch
Greenhorn

Joined: Jul 29, 2011
Posts: 1
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
 
 
subject: Problem with jframe, serial communication, dynamic changing value and displaying it