public Dimension getSize() {
    DesktopWindowRect rect = getRect();
    return new Dimension(rect.getWidth(), rect.getHeight());
  }
public Dimension getSize ( ) { DesktopWindowRect rect = getRect ( ) ; return new Dimension ( rect . getWidth ( ) , rect . getHeight ( ) ) ; }
@return size of Element