public void removeClass(String name){
		DragAndDropClassObject obj;
		for (int i=0;i<components.size();i++){
			obj = components.get(i);
			if (obj.name.equals(name)){
				for (DragAndDropClassObject classObject:components){
					for (int j = 0; j<classObject.links.size(); j++){
						Link link = classObject.links.get(i);
						if (link.classTwoName.equals(obj.name)){
							classObject.links.remove(i);
							j--;
						}
					}
				}
				components.remove(i);
				diagramPanel.repaint();
				return;
			}
		}
	}