Method showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
Return type: void
Member of: javax.swing.JOptionPane
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 JOptionPane.showMessageDialog(this, "You pressed the Linux button",
2 JOptionPane.showMessageDialog(this, "Sub-Manifest disaggregated successfully.", "Disaggregate Package", JOptionPane.INFORMATION_MESSAGE, null);
3 aboutOptionPane.showMessageDialog(null,"", "about...", javax.swing.JOptionPane.PLAIN_MESSAGE, aboutIcon);
4 if (url != null) JOptionPane.showMessageDialog(this, msg, "Moses", JOptionPane.PLAIN_MESSAGE, new ImageIcon(url));
5 JOptionPane.showMessageDialog(HierarchicalToolPool.this,
6 JOptionPane.showMessageDialog(PaunchFrame.instance, aboutLabel,
7 JOptionPane.showMessageDialog(getMainFrame(), ""+PhotoOrganizer.PROGRAMNAME+"\n"+
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.