title: How do I add an image to a JButton
body: <p>I am trying to add an image to a JButton and I'm not sure what I'm missing. When I run the following code the button looks exactly the same as if I had created it without any image attribute. Water.bmp is in the root of my project folder. </p>
  
  <pre><code>ImageIcon water = new ImageIcon("water.bmp");
      JButton button = new JButton(water);
      frame.add(button);
  </code></pre>