Java Utililty Methods JOptionPane Message

List of utility methods to do JOptionPane Message

Description

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

Method

voidshowMessage(Component c, String msg)
show Message
JOptionPane.showMessageDialog(c, msg);
voidshowMessage(Component component, String message)
show Message
JOptionPane.showMessageDialog(SwingUtilities.getWindowAncestor(component), message,
        UIManager.getString("OptionPane.messageDialogTitle"), JOptionPane.INFORMATION_MESSAGE);
voidshowMessage(Component item, String title)
Shows a message in an Option Panel.
JOptionPane.showMessageDialog(null, item, title, JOptionPane.PLAIN_MESSAGE);
voidshowMessage(Component parent, String message, int messageType)
Show a JOptionPane message dialog.
if (parent != null && !(parent instanceof Window)) {
    parent = SwingUtilities.getAncestorOfClass(Window.class, parent);
JOptionPane.showMessageDialog(parent, message, MESSAGE_TITLE, messageType, null);
voidshowMessage(Component parent, String msg, String title, int flags)
Shows a message dialog, wrapping the msg at 60 columns.
if (msg != null && msg.length() > 60) {
    StringBuilder buf = new StringBuilder();
    final int L = msg.length();
    for (int i = 0, j = 0; i < L; i++, j++) {
        final char c = msg.charAt(i);
        buf.append(c);
        if (Character.isWhitespace(c)) {
            int k;
...
voidshowMessage(Component parentComponent, String title, String message, int messageType)
show Message
JOptionPane.showMessageDialog(parentComponent, message, title, messageType);
voidshowMessage(final Component rootComponent, final String message, final String title)
show Message
JOptionPane.showMessageDialog(rootComponent, message, title, JOptionPane.INFORMATION_MESSAGE);
voidshowMessage(final String message)
shows a message prompt
showMessage(message, "FrontPage Popup");
voidshowMessage(final String message)
show Message
EventQueue.invokeLater(new Runnable() {
    @Override
    public void run() {
        JOptionPane.showMessageDialog(null, message);
});
voidshowMessage(final String msg, Component parent)
show Message
JOptionPane.showMessageDialog(parent, msg);