Java - ImageIcon won't show image
<pre><code>searchIcon = new ImageIcon( "searchIcon.png" );

searchIconLabel = new JLabel();
searchIconLabel.setIcon(searchIcon);

....

searchHorizontalPanel.add( searchIconLabel );
</code></pre>

<p>I'm trying to load the icon but it won't show up. The jpanel is within a boxlayout. I don't know if that messes things up. It's strange because I can add pretty much anything else except icon images. I went through the debugger and searchIcon is showing the width and height to be -1. Does this mean the image is not being loaded?</p>
