title: Java making a drawCircle method calling drawOval
body: <p>I need to make a drawCircle method that looks like </p>
  
  <pre><code>public void drawCircle(int x, int y, int radius)
  </code></pre>
  
  <p>that draws a circle with that center and radius.  The drawCircle method needs to call drawOval.  I am not sure how I can call drawOval from my drawCircle method without passing Graphics to it.  Is this possible?  </p>
  
  <p>Heres what I have:</p>
  
  <pre><code>import java.awt.*;   
  import javax.swing.*;
  
  class test
  {
      public static void main(String[] args)
      {
          JFrame frame = new JFrame("test");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  
          frame.getContentPane().add(new MyPanel());
          frame.pack();
          frame.setVisible(true);
      }
  }
  class MyPanel extends JPanel
  {
  
      MyPanel()
      {
          setBackground(Color.WHITE);
          setPreferredSize(new Dimension(250,250));
      }
  
      public void paintComponent(Graphics page)
      {
          super.paintComponent(page);
          drawCircle(50,50,20);
      }
  
      private void drawCircle(int x, int y, int radius)
      {
          drawOval(x - radius, y - radius, radius*2, radius*2);
      }
  }
  </code></pre>