title: The method fillArc paint the arcs with wrong dimensions
body: <p>I have a problem with the method fillArc of the class Graphics.</p>
  
  <p>When I give the int values of the size of the arc,it paint an arc with wrong dimensions.</p>
  
  <pre><code> Dimension dimensione;  //dimension of the window. 
   public void paint() {
  
      BufferStrategy bS = this.getBufferStrategy();
  
      Graphics g=bS.getDrawGraphics();
     g.clearRect(0, 0,(int)dimensione.getWidth(), (int)dimensione.getHeight());
  
  
  
     // g.fillArc((int)dimensione.getWidth()/2-150,(int)dimensione.getHeight()/2-150, 300,300, 0, 360);
          g.fillArc(0,0,(int)dimensione.getWidth(), (int)dimensione.getHeight(),0, 360);
  
  
      bS.show();
  
  
      try {
          Thread.sleep(100);
      } catch (InterruptedException ex) {
          Logger.getLogger(Disegno.class.getName()).log(Level.SEVERE, null, ex);
      }
  }
  </code></pre>
  
  <p>It should create an arc as big as the window... but this is the result:</p>
  
  <p><a href="https://i.stack.imgur.com/54Udp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/54Udp.png" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong?</p>