aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with jframe, serial communication, dynamic changing value and displaying it
 
Similar Threads
Urgent!!! A NullPointerException !!! I can't solve it.
Cant understand why...
Tried for hours and hours to work this out, data buffer from one class back to my main class?
Java Telephone API (JTAPI)
Two way communcation with the serial port (modem to modem)