I am trying to implement SerialPortEventListener but failed. My code is
public class Communicator implements SerialPortEventListener{
My netbeans 7.1 shows mateorssms.Communicator is not abstract and does not override abstract method serialEvent(javax.comm.SerialPortEvent) in javax.comm.SerialPortEventListener. I’ve successfully imported javax.comm.*;. What is wrong with me?
Thanks in advance…
Your
Communicatorclass needs a to implement a methodThat’s all. Add this method stub to your class and the error is gone. Then add some functionality to that method.