code: public void validate()
      {
          Dimension size = desktopPane.getSize();
          size.height -= computeDesktopIconsSpace();
          layoutInternalFrames(size);
      }
docs: Validate the layout after internal frames have been added
  or removed