Here you can find the source of displayImagePopup(BufferedImage img)
public static void displayImagePopup(BufferedImage img)
//package com.java2s; //License from project: Open Source License import javax.swing.*; import java.awt.image.BufferedImage; public class Main { public static void displayImagePopup(BufferedImage img) { JLabel label = new JLabel(new ImageIcon(img)); JOptionPane.showMessageDialog(null, label, "Word Debaser!", JOptionPane.PLAIN_MESSAGE, null); }/*from ww w .j a v a 2 s .c o m*/ }