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

voidshowWarningMessage(String title, String message, java.awt.Component parent)
show Warning Message
JOptionPane.showMessageDialog(parent, splitIntoLines(message), title, JOptionPane.WARNING_MESSAGE);
voidwarn(Component parent, String message)
warn
JOptionPane.showMessageDialog(parent, message, "Warning", JOptionPane.WARNING_MESSAGE);
voidwarn(Component parent, String message)
warn
JOptionPane.showMessageDialog(parent, message, "Warning", JOptionPane.WARNING_MESSAGE);
voidwarn(Component parent, String message)
warn
JOptionPane.showMessageDialog(parent, message, "Warning", JOptionPane.WARNING_MESSAGE);
voidwarn(String message)
warn
warn(message, "Warning");
voidwarning(String message, Component parent)
Show a warning window.
Toolkit.getDefaultToolkit().beep();
JOptionPane.showMessageDialog(parent, message, "Warning", JOptionPane.WARNING_MESSAGE);
booleanwarning(String Msg)
Short version of warning method - uses default frame, and has the title 'Warning'.
if (displayFrame == null) 
    System.out.println("warning display not initialised! (error was: " + Msg + ")");
    return false;
return warning(displayFrame, Msg, "Warning");
voidwarning(String msg)
warning
Object[] options = { "Ok" };
JOptionPane.showOptionDialog(null, msg, "Warning", JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE,
        null, options, options[0]);
voidwarning(String title, Object message, JComponent parent)
Muestra un dialogo de advertencia.
JOptionPane.showMessageDialog(parent, message, title, JOptionPane.WARNING_MESSAGE);
voidwarningMessage(Component component, String title, String message)
warning Message
JOptionPane.showMessageDialog(component, message, title, JOptionPane.WARNING_MESSAGE);