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

voiddisplayInfoPane(Component parentComponent, String message)
display Info Pane
JOptionPane.showMessageDialog(parentComponent, message);
voiddisplayInformation(String strMsg)
display Information
displayMessageBox(strMsg, JOptionPane.INFORMATION_MESSAGE, false);
voiddisplayInformationMessage(Component parentComponent, String message, String windowTitle)
display Information Message
displayMessage(parentComponent, message, windowTitle, JOptionPane.INFORMATION_MESSAGE);
voidflashInfoMessage(final Component sourceComponent, final String message, int durationInMilliSecs)
flash Info Message
JOptionPane pane = new JOptionPane(message, JOptionPane.INFORMATION_MESSAGE);
final JDialog dialog = pane.createDialog(null, "Info message");
Timer timer = new Timer(durationInMilliSecs, new ActionListener() {
    public void actionPerformed(ActionEvent e) {
        dialog.setVisible(false);
        dialog.dispose();
});
...
IcongetIconInformation()
Retrieves the standard information icon (the same one that JOptionPane uses).
return UIManager.getIcon("OptionPane.informationIcon");
voidinfo(Component component, String title, String msg)
info
JOptionPane.showMessageDialog(component, msg, title, JOptionPane.INFORMATION_MESSAGE);
voidinfo(Component parent, String message)
info
JOptionPane.showMessageDialog(parent, message, "Info", JOptionPane.INFORMATION_MESSAGE);
voidinfo(Component parent, String message)
info
JOptionPane.showMessageDialog(parent, message, "Info", JOptionPane.INFORMATION_MESSAGE);
voidinfo(String message, Component parent)
Show an info window.
Toolkit.getDefaultToolkit().beep();
JOptionPane.showMessageDialog(parent, message, "Info", JOptionPane.INFORMATION_MESSAGE);
voidinfoBox(String message, String title)
This method will display an informational message box to the user
JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE);