title: Paint method java - Rectangle with outline
body: <p>I want to create a wall with a blue line outline and black filling. I have only a blue wall now and I tried a couple of the Graphics methods but wasn't working.</p>
  
  <pre><code>public void paint(Graphics g) {
      g.setColor(Color.blue);
      g.fillRect(x, y, size, size);
  }
  </code></pre>