public static Component focusComponentOrChild(Component c, boolean deepest) {
        final Component focusable = getFocusableComponentOrChild(c, deepest);
        if (focusable != null) {
            focusable.requestFocus();
        }
        return focusable;
    }
Puts the focus on the first component in the tree of <code>c</code> that
can accept the focus.

@param c       the root of the component hierarchy to search
@param deepest if <code>deepest</code> is true the method will focus the first and deepest component that can
               accept the focus.
               For example, if both a child and its parent are focusable and <code>deepest</code> is true, the child is focused.
@return the component which has focus
@see #getFocusableComponentOrChild
starter/src/main/java/org/jivesoftware/openfire/launcher/GraphicUtils.java