Everytime I try to call the repaint() method it says a non static method cannot be reference from a static method. Btw, it's in the same class as the paintComponent method. I tried to create an object out of the class first, then reference it with the object name but it also didn't work. Please help. 

```
public class P extends JPanel {

P g = new P();
boolean change = true;
static int x = 0;
static int y = 0;
static Color CircleC = new Color(0, 0, 0);
static String position = "";
P p = new P();

public void paintComponent(Graphics g) {
    g.setColor(CircleC);
    g.fillOval(x, y, 50, 50);
    g.setColor(Color.WHITE);
    g.drawString(position, x, y + 25);

}

public static void main(String[] args) throws InterruptedException {
p.repaint();

}

}

```