First thing:
DONT USE PAINT METHOD OF JFRAME. Instead, use paintComponent of the jpanel where you are trying to draw the circle.
Second thing:
A circle is basically an ellipse inside a rectangle which touches the borders of the rectangle.
So you just need to draw a rectangle theoretically.To draw a circle which covers entire panel
Ellipse2D circle = new Ellipse.Double(0,0,panelWidth,panelHeight);
public void paintComponent(Graphics g){
super.paintComponent(g);//this is very important
Graphics2D g2 = (Graphics2D) g;
....
Ellipse2D circle = new Ellipse.Double(0,0,panelWidth,panelHeight);
g2.draw(circle);
}