Field WARNING_MESSAGE
Field type: int
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, title, JOptionPane.WARNING_MESSAGE);
2 msg, title, JOptionPane.WARNING_MESSAGE);
3 JOptionPane.WARNING_MESSAGE);
4 showMessageDialog(parent, msg, title, JOptionPane.WARNING_MESSAGE);
5 JOptionPane.WARNING_MESSAGE );
6 JOptionPane.WARNING_MESSAGE);
7 JOptionPane.WARNING_MESSAGE, JOptionPane.YES_NO_OPTION);
8 "Achtung",JOptionPane.WARNING_MESSAGE);
9 JOptionPane.WARNING_MESSAGE,
10 JOptionPane.showMessageDialog (null,status, "Script error", JOptionPane.WARNING_MESSAGE);
11 JOptionPane.showMessageDialog(this, msg, title, JOptionPane.WARNING_MESSAGE);
12 JOptionPane.CLOSED_OPTION + JOptionPane.WARNING_MESSAGE);
13 JOptionPane.WARNING_MESSAGE);
14 JOptionPane.WARNING_MESSAGE);
15 if(JOptionPane.showConfirmDialog(null,"Changes have not been saved. Close anyway (changes will be lost)?","Changes not saved", JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE) == 0)
16 ok ? JOptionPane.WARNING_MESSAGE : JOptionPane.ERROR_MESSAGE);
17 JOptionPane.WARNING_MESSAGE,
18 JOptionPane.WARNING_MESSAGE );
19 JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
20 JOptionPane.WARNING_MESSAGE);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.