name = capitalize(name);
Component element = constraints.get(name);
if (element != null) {
java.awt.Component component = getAWTComponent(element);
// Now search for this component:
AWTContainer container = getAWTContainer();
for (int i = container.getComponentCount(); i >= 0; i--) {
java.awt.Component comp = container.getComponent(i);
if (comp == component) {
container.remove(i);
constraints.remove(name);
removeComponent(element);
return element;
}
}