Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
krzysiek koch
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic