code: public void focusLost(FocusEvent _focusEvent) {
          short nFocusFlags = _focusEvent.FocusFlags;
          int nFocusChangeReason = nFocusFlags & FocusChangeReason.TAB;
          if (nFocusChangeReason == FocusChangeReason.TAB) {
              // get the window of the Window that has gained the Focus...
              // Note that the xWindow is just a representation of the controlwindow
              // but not of the control itself
              XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, _focusEvent.NextFocus);
          }
      }
docs: /*## XFocusListener ##