Java Utililty Methods JOptionPane Warning

List of utility methods to do JOptionPane Warning

Description

The list of methods to do JOptionPane Warning are organized into topic(s).

Method

voidwarningMessage(final String title, final String content)
Displays a warning message.
SwingUtilities.invokeLater(new Runnable() {
    public void run() {
        JOptionPane.showMessageDialog(null, title, content, JOptionPane.WARNING_MESSAGE);
});
voidwarnMsg(final String msg)
Warning message dialog
SwingUtilities.invokeLater(new Runnable() {
    public void run() {
        JOptionPane.showMessageDialog(null, msg, "Warning", JOptionPane.WARNING_MESSAGE);
        System.out.println(msg);
});
voidwarnMsg(String msg)
Warning message dialog
JOptionPane.showMessageDialog(null, msg, "Warning", JOptionPane.WARNING_MESSAGE);
System.out.println(msg);
voidwarnUser(Component parent, String message)
warn User
JOptionPane.showMessageDialog(parent, message, "Warning", JOptionPane.WARNING_MESSAGE);