public EditSensorsDialog(final Collection<Sensor> sensors){
  super();
  if (sensors == null) {
    throw new IllegalArgumentException("sensors must not be null");
  }
  this.sensors=sensors;
  setTitle("Edit " + sensors.size() + " Sensor(s):");
  initComponents();
  layoutComponents();
}

public EditSensorsDialog ( final Collection < Sensor > sensors ) { super ( ) ; if ( sensors == null ) { throw new IllegalArgumentException ( "sensors must not be null" ) ; } this . sensors = sensors ; setTitle ( "Edit " + sensors . size ( ) + " Sensor(s):" ) ; initComponents ( ) ; layoutComponents ( ) ; }
create a new edit sensor dialog .
