return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);
Dimension max = null; LayoutManager layout = frame.getLayout(); if (frame == x && layout != null && layout instanceof LayoutManager2) max = ((LayoutManager2) layout).maximumLayoutSize(frame); else max = new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); return max;
  public Dimension getMaximumSize(JComponent x)  {    return new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE);  }