void (Object component) { Object parent = getParent(component); String parentclass = getClass(parent); String classname = getClass(component); String listkey = ("combobox" == parentclass) ? "choice" : (("tabbedpane" == parentclass) && ("tab" == classname)) ? "tab" : ("list" == parentclass) ? "item" : (("table" == parentclass) && ("column" == classname)) ? "column" : (("table" == parentclass) && ("row" == classname)) ? "row" : ("row" == parentclass) ? "cell" : (("tree" == parentclass) || ("node" == parentclass)) ? "node" : (("menubar" == parentclass) || ("menu" == parentclass)) ? "menu" : (("panel" == parentclass) || ("desktop" == parentclass) || ("splitpane" == parentclass) || ("dialog" == parentclass) || ("tabbedpane" == parentclass)) ? "component" : null; if (listkey == null) { throw new IllegalArgumentException("unknown " + classname); } update(component, "validate"); removeItemImpl(parent, listkey, component); // reuest focus for its parent if the component (or subcomponent) is currently focused for (Object comp = focusowner; comp != null; comp = getParent(comp)) { if (comp == component) { setNextFocusable(parent, false); break; } } }