Component (Container aContainer, Component aComponent) { final List<Component> components = getOrderedComponents(); int i = components.indexOf(aComponent); Component before = (i != -1 ? searchShowing(components, i - 1, BACKWARD) : null); if (before == null && !myReturnNullIfOutsideOfOrderedComponents) { // Let LayoutFTP detect the nearest focus cycle root and handle cyclicity correctly. return super.getComponentBefore(aContainer, aComponent); } return before; }