title: JFrame not drawing
body: <p>I'm making a pong game with a JFrame but it's not drawing.</p>
  
  <pre class="lang-java prettyprint-override"><code>package src;
  
  import java.awt.Color;
  import java.awt.Graphics;
  
  import javax.swing.*;
  
  public class Pong_Game extends JFrame{
  public void Init()
  {
      setTitle("Pong");
      setSize(500, 500);
      setResizable(false);
      setVisible(true);
  }
  
  public void paintComponent(Graphics g)
  {
       g.setColor(Color.BLACK);
       g.fillRect(0, 0, 500, 500);
  }
  }
  </code></pre>
  
  <p>My window is just blank, why? One thing which might be worth noting is that the paintComponent method seems like a lot of people spell it differently or use it differently so I think I did something wrong.</p>