Ejemplo n.º 1
0
 public ControlPointFrame() throws IOException {
   setSize(480, 600);
   addList();
   setVisible(true);
   ControlPoint controlPoint = new ControlPoint(this, this);
   controlPoint.start();
   controlPoint.search();
 }
Ejemplo n.º 2
0
 @Override
 public void deviceListChanged(ControlPoint controlPoint) {
   model.removeAllElements();
   for (Map.Entry<String, DeviceModel> entry : controlPoint.getDeviceModels().entrySet()) {
     model.addElement(entry.getValue());
   }
 }