code: private void addMapping() {
  		String id = IDGenerator.getNextUniqueID("MAPID-");
  
  		JDialog dialog = new JDialog();
  		dialog.setTitle("New Mapping");
  		dialog.setModal(true);
  
  		NewMappingDialogPanel panel = new NewMappingDialogPanel(apic, dialog, selectedSource);
  		panel.setID(id);
  		dialog.setContentPane(panel);
  		dialog.setSize(600, 500);
  		dialog.setLocationRelativeTo(this);
  		dialog.setVisible(true);
  	}
docs: GEN-LAST:event_addMappingButtonActionPerformed