Java Utililty Methods JOptionPane Info

List of utility methods to do JOptionPane Info

Description

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

Method

voidinfoMessage(Component owner, String title, String message, ModalityType modalityType)
Use this instead of JOptionPane.showMessageDialog(..., JOptionPane.INFORMATION_MESSAGE)
JOptionPane jop = new JOptionPane(message, JOptionPane.INFORMATION_MESSAGE);
JDialog dialog = jop.createDialog(owner, title);
dialog.setModalityType(modalityType);
dialog.setVisible(true);
voidinfoMsg(final String msg)
Information message dialog
SwingUtilities.invokeLater(new Runnable() {
    public void run() {
        JOptionPane.showMessageDialog(null, msg, "Information", JOptionPane.INFORMATION_MESSAGE);
        System.out.println(msg);
});
voidinfoMsg(String msg)
Information message dialog
JOptionPane.showMessageDialog(null, msg, "Information", JOptionPane.INFORMATION_MESSAGE);
System.out.println(msg);
voidinform(String dlgTitle, String info, Component parent)
Show a text message dialog.
JOptionPane.showMessageDialog(parent, info, dlgTitle, JOptionPane.INFORMATION_MESSAGE, null);
voidinform(String message)
inform
inform(message, "Information");
voidinformation(String title, String message)
Displays an information message.
JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE);
voidmensajeInformacion(String mensaje, String titulo)
mensaje Informacion
JOptionPane.showMessageDialog(null, mensaje, titulo, JOptionPane.INFORMATION_MESSAGE);
voidshowException(Component parent, Exception e, String info)
Display an exception in a nice user-oriented way.
Object[] message = new Object[1];
String string;
if (info != null) {
    string = info + "\n" + e.getMessage();
} else {
    string = e.getMessage();
message[0] = ellipsis(string, 400);
...
voidshowException(Component parent, Exception e, String info)
Display an exception in a nice user-oriented way.
Object[] message = new Object[1];
String string;
if (info != null) {
    string = info + "\n" + e.getMessage();
} else {
    string = e.getMessage();
message[0] = ellipsis(string, 400);
...
voidshowInfo(Component owner, String msg)
Shows an info dialog
showInfo(owner, "Information", msg);