Dimension d = super.getPreferredSize(); System.out.println("JFrame.getPrefSize(): " + d + " , comp=" + getComponentCount() + ", layout=" + getLayout()); return d;
return super.getPreferredSize();
  public Dimension getPreferredSize()  {    Dimension d = super.getPreferredSize();    System.out.println("JFrame.getPrefSize(): " + d + " , comp="                       + getComponentCount() + ", layout=" + getLayout());    return d;  }