public Rectangle getBounds() {
    JComponent content = isDisposed() ? null : getContent();
    return content == null ? null : new Rectangle(content.getLocationOnScreen(), content.getSize());
  }
public Rectangle getBounds()