title: Set Image Icon in Panel
body: <p>I want to set an image icon in a panel.I am trying to do like this ;</p>
  
  <pre><code> JLabel label = new JLabel(new ImageIcon("logo.jpg"))
   panelHeader.add(label);
   add(panelHeader);
  </code></pre>
  
  <p>But the image is not showing.Any suggestion what i am doing wrong?</p>