Results 1 to 2 of 2
Thread: swingworker
- 07-24-2007, 11:50 AM #1
Member
- Join Date
- Jul 2007
- Posts
- 13
- Rep Power
- 0
swingworker
Hey Guys
Am sending data to the serial port a byte at a time and a response is recieved at the serialport for every sent byte.
My problem is that all the responses are displayed in the application after all the bytes are sent. I want each response to be shown in the application when it's recieved and not after all the bytes are sent. I am trying to use the swingworker to manage my threads, but I just cannot get it to work. Plze give me a hand
NB. I have attached the class ttteer which runs the GUI and the class SimpleRead.java which has the method "serialEvent(SerialPortEvent event)" that reads from the serial port when ever there is an event and the method writeToport() that writes to the port.
- 07-26-2007, 12:59 PM #2
Member
- Join Date
- Jul 2007
- Posts
- 13
- Rep Power
- 0


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks