List of utility methods to do JOptionPane Info
void | infoMessage(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);
|
void | infoMsg(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); }); |
void | infoMsg(String msg) Information message dialog JOptionPane.showMessageDialog(null, msg, "Information", JOptionPane.INFORMATION_MESSAGE);
System.out.println(msg);
|
void | inform(String dlgTitle, String info, Component parent) Show a text message dialog. JOptionPane.showMessageDialog(parent, info, dlgTitle, JOptionPane.INFORMATION_MESSAGE, null); |
void | inform(String message) inform inform(message, "Information");
|
void | information(String title, String message) Displays an information message. JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE); |
void | mensajeInformacion(String mensaje, String titulo) mensaje Informacion JOptionPane.showMessageDialog(null, mensaje, titulo, JOptionPane.INFORMATION_MESSAGE); |
void | showException(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); ... |
void | showException(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); ... |
void | showInfo(Component owner, String msg) Shows an info dialog showInfo(owner, "Information", msg);
|