"Component is in use; delete anyway?",
"Component has been or is being used; delete anyway?",
  private void deleteComponent(DefaultMutableTreeNode node) {    ModifiableConfigurableComponent component = (ModifiableConfigurableComponent)node.getUserObject();    if (component instanceof SocietyComponent)      deleteSociety(node);    else if (component instanceof ImpactComponent)      deleteImpact(node);    else if (component instanceof Experiment)      deleteExperiment(node);    else if (component instanceof MetricComponent)      deleteMetric(node);    else {      if (!component.isEditable()) {	int result = JOptionPane.showConfirmDialog(this,						   "Component is in use; delete anyway?",						   "Component Not Editable",						   JOptionPane.YES_NO_OPTION,						   JOptionPane.WARNING_MESSAGE);	if (result != JOptionPane.YES_OPTION)	  return;      }      model.removeNodeFromParent(node);      componentNames.remove(component.getShortName());    }  }