Method showMessageDialog(Component parentComponent, Object message, String title, int messageType)
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,message,"Error",JOptionPane.ERROR_MESSAGE);
2 JOptionPane.showMessageDialog(this,
3 JOptionPane.showMessageDialog(this, "Invalid date format", "I don't understand your date format.", JOptionPane.ERROR_MESSAGE);
4 JOptionPane.showMessageDialog(this, "IO Error attempting to refresh", "Error", JOptionPane.ERROR_MESSAGE);
5 JOptionPane.showMessageDialog(this,
6 JOptionPane.showMessageDialog(this, "Passwort oder Bestätigung zu kurz!", "Fehler!", JOptionPane.ERROR_MESSAGE);
7 JOptionPane.showMessageDialog(this,
8 JOptionPane.showMessageDialog(this, "Unable to load help file", "Error", JOptionPane.ERROR_MESSAGE);
9 JOptionPane.showMessageDialog(this,
10 JOptionPane.showMessageDialog(this, "This field must have a long value!", "Value Required", JOptionPane.ERROR_MESSAGE);
11 JOptionPane.showMessageDialog(this,
12 JOptionPane.showMessageDialog(container, "Sorry, this option is not available in this FOA Version !", "Message", JOptionPane.INFORMATION_MESSAGE);
13 JOptionPane.showMessageDialog(this, t, "Exception", JOptionPane.ERROR_MESSAGE);
14 JOptionPane.showMessageDialog(this,
15 else JOptionPane.showMessageDialog(this, msg, "Moses", JOptionPane.PLAIN_MESSAGE);
16 JOptionPane.showMessageDialog(this, inputPanel, "input", JOptionPane.PLAIN_MESSAGE);
17 JOptionPane.showMessageDialog(this, e.toString(), "Field Error", JOptionPane.ERROR_MESSAGE);
18 JOptionPane.showMessageDialog( this,
19 JOptionPane.showMessageDialog(this,
20 JOptionPane.showMessageDialog(this, e.toString(), "Error",
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.