示例#1
0
 public void controlEvent(ControlEvent theEvent) {
   // select com from list
   if (theEvent.isGroup() && theEvent.name().equals("portComList")) {
     println("Select portComList" + "   value = " + theEvent.group().value()); // for debugging
     InitSerial(theEvent.group().value()); // initialize the serial port selected
   }
 }