JOptionPane showMessageDialog with Icon (Another Way to get ImageIcon)
showMessageDialog( Component parent, Object message, String title, int messageType, Icon icon) The first argument is the parent for the dialog that is used to position the dialog.The second argument specifies what is to be displayed in addition to the default OK button. Third argument specifies by the title. The fourth argument specifies messageType. if you … Read more…