Point p = evt.getPoint();
p.translate(this.getX(), this.getY());
Component c = getParent().getComponentAt(p);
if(c != null && c instanceof ECState && c != this){
ECState other = (ECState)c;
ECCDialog eccdialog = new ECCDialog((Element)elem.getParentNode(), evt);
eccdialog.setSourceStateName(getName());
eccdialog.setDestinationStateName(other.getName());
eccdialog.create("Add Transition");
}
}
}