private void disposeResizeListener() {
    Window window = getWindow();
    if (window != null && myResizeListener != null) {
      window.removeComponentListener(myResizeListener);
      myResizeListener = null;
    }
  }
private void disposeResizeListener()