public void displayInWindow(Frame owner){
  Dimension dim=getComponentSize();
  if (dim != null) {
    content.setSize(dim);
  }
  displayInWindow(owner,-1,-1,-1,-1);
}

public void displayInWindow ( Frame owner ) { Dimension dim = getComponentSize ( ) ; if ( dim != null ) { content . setSize ( dim ) ; } displayInWindow ( owner , - 1 , - 1 , - 1 , - 1 ) ; }
display the window , and find out what the natural or revised size and location are for the window .
