title: Adding an image to a shape
body: <p>So i'm learning to create a java game on eclipse. I learned adding shapes and such. I also learned how to paint the shapes (change the colours) I was wondering how to add an image to the shape. This is the code for painting the rectangle.</p>
  
  <pre><code>public void paintColumn(Graphics g, Rectangle column)
      {
          g.setColor(Color.blue.darker());
          g.fillRect(column.x, column.y, column.width, column.height);
      }
  </code></pre>