return internalFrameLayout.preferredLayoutSize(x);
Dimension pref = null; LayoutManager layout = frame.getLayout(); if (frame == x && layout != null) pref = layout.preferredLayoutSize(frame); else pref = new Dimension(100, 100); return pref;
  public Dimension getPreferredSize(JComponent x)  {    return internalFrameLayout.preferredLayoutSize(x);  }