Thanks for your answer.I can't tell that I'm a begginer in Java but that code seems to me is coming from nowhere.
Can you please add more comments on the code?
SerialPortEventListener is an interface that comes with jdk1.2.2 or you wrote it?
What type is "myPort"?..is SerialPort?
This SerialPort datatype exists already in the packages from Sun or not?
What is tempData?...a byte?
Let me tell what I understood (and please tell if I'm right or not)
You have an interface called SerialPortEventListener
This interface has a method called serialEvent and you implement it.
You create a object of type SerialPort (e.g. myPort)
Then add the serial port listener to this object.
Please answer me..is very important for me because serial port reading (in Java)is one of the problems I have doing my college degree project.
us marriage