title: Adding image to Jbutton with foreground label
body: <p>Friends, i m trying add image to my Jbutton using seticon method but it hide the text label on the button. Here is the code : </p>
  
  <pre><code>      try {
          Image img = ImageIO.read(getClass().getResource("image.jpg"));
          studentsButton.setIcon(new ImageIcon(img));         
        } catch (IOException ex) {
        }
  </code></pre>
  
  <p>And i m using swing in eclipse without init()/paint()/graphics, its simple frame in main method.</p>