@Override
      public void componentResized(ComponentEvent e) {
        if (!myResizeInProgress) {
          myActualSize = myPeer.getSize();
          if (LOG.isDebugEnabled()) {
            LOG.debug("Updated the actual size to " + myActualSize + " because the dialog has been resized");
          }
          if (myErrorText != null && myErrorText.isVisible()) {
            myActualSize.height -= myErrorText.getMinimumSize().height;
            if (LOG.isDebugEnabled()) {
              LOG.debug("Adjusted the actual size to " + myActualSize + " to account for the minimum height of the error text");
            }
          }
        }
      }
@Override
      public void componentResized(ComponentEvent e)