title: How to have an image pop up in Java
body: <p>I am making a project in java where an image pops up in an if statement. I have looked online for about an hour and anything I found gave me an error that I had no idea how to fix. Heres an example, <a href="https://stackoverflow.com/questions/15258467/java-how-can-i-popup-a-dialog-box-as-only-an-image">Java, how can I popup a dialog box as only an image?</a>. After using the code suggested by whiskeyspider and after importing <code>java.awt.image.BufferedImage;
   javax.swing.ImageIcon;
   javax.swing.JLabel;</code>
  I got an error at <code>ImageIo</code> and <code>File</code> on the first line.
  If you can help me in anyway please let me know I am using netbeans and I have <code>javax.swing.JOptionPane;</code>imported already so if that helps there you go (sorry for sounding like I was to lazy to research things, for I am only 12 and my attention span isn't the greatest) </p>