// purpose: demonstrate popup with an icon import javax.swing.*; public class FileImagePopUp { // method main(): program starting point public static void main( String[] args ) { // set pop up description String message = "Look what you have done!"; String title = "Amazing"; String iconName = "awesome.jpg"; ImageIcon image = new ImageIcon( iconName ); // pop up JOptionPane.showMessageDialog( null, // particular place to popup? message, // what are we telling them title, // title of our message JOptionPane.INFORMATION_MESSAGE, // type of message image ); // picture to display with message } }