コード例 #1
0
 private void setNotifiers() {
   serialPort.notifyOnDataAvailable(true);
   serialPort.notifyOnOutputEmpty(true);
   serialPort.notifyOnBreakInterrupt(true);
   serialPort.notifyOnCarrierDetect(true);
   serialPort.notifyOnCTS(true);
   serialPort.notifyOnDSR(true);
   serialPort.notifyOnFramingError(true);
   serialPort.notifyOnOverrunError(true);
   serialPort.notifyOnParityError(true);
   serialPort.notifyOnRingIndicator(true);
 }