title: Displaying image in JPanel from NetBeans GUI Builder
body: <p>I created a <code>JFrame</code> in Netbeans and added a <code>JPanel</code> (automatically declared in non-editable code as <code>private javax.swing.JPanel jPanel1</code>).</p>
  
  <p>I have a button on my form and would like to display an image in the panel upon clicking the button - however I'm not sure what code I need to display the image. </p>