void () { myOriginalFocusOwner = myFocusManager.getFocusOwner(); // Set the accessible parent so that screen readers don't announce // a window context change -- the tooltip is "logically" hosted // inside the component (e.g. editor) it appears on top of. AccessibleContextUtil.setParent(myContent, myOriginalFocusOwner); // Set the focus to "myContent" myFocusManager.requestFocus(getContentToFocus(), true); }