manager.upFocusCycle (this);
KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager();  if (focusCycleRoot != null) {      Container focusCycleAncestor = focusCycleRoot.getFocusCycleRootAncestor(); Container globalFocusCycleRoot; if (focusCycleAncestor == null) globalFocusCycleRoot = focusCycleRoot; else globalFocusCycleRoot = focusCycleAncestor;  fm.setGlobalCurrentFocusCycleRoot(globalFocusCycleRoot); focusCycleRoot.requestFocus(); } else {     Container cont; if (this instanceof Container) cont = (Container) this; else cont = getParent();  while (cont != null && !(cont instanceof Window)) cont = cont.getParent();  if (cont != null) { FocusTraversalPolicy policy = cont.getFocusTraversalPolicy(); Component focusComp = policy.getDefaultComponent(cont); if (focusComp != null) { fm.setGlobalCurrentFocusCycleRoot(cont); focusComp.requestFocus(); } } }
  public void transferFocusUpCycle ()  {    KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager ();    manager.upFocusCycle (this);	}