title: getX() has private access in java.awt.Rectangle?
body: <p>Why following code generate error message : <code>getX() has private access in java.awt.Rectangle
                        (int)dest.getX(), (int)dest.getY(), (int)dest.getWidth(), (int)dest.getHeight()</code></p>
  
  <p>According to  the doc , <code>Rectangle</code> do have a public method <code>getX()</code>. </p>
  
  <pre><code>   public boolean setSize(java.awt.Rectangle source, java.awt.Rectangle dest)
  {
  
      setVideoSize((int)source.getX() ,(int)source.getY(), (int)source.getWidth(), (int)source.getHeight(),
                (int)dest.getX(), (int)dest.getY(), (int)dest.getWidth(), (int)dest.getHeight()
       );
  
  
       return true;
  
  }
  </code></pre>