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

voidshowInfoBox(Component aParent, String aTitle, String aMessage)
Displays an information dialog.
JOptionPane.showMessageDialog(aParent, aMessage, aTitle, JOptionPane.INFORMATION_MESSAGE);
voidshowInfoMessage(Component parent, String message)
show Info Message
JOptionPane.showMessageDialog(parent, message, "Information", JOptionPane.INFORMATION_MESSAGE);
voidshowInfoMessage(String message, Component component)
show Info Message
JOptionPane.showMessageDialog(component, message, "Informasi", JOptionPane.INFORMATION_MESSAGE);
voidshowInformationBox(Component pParent, String pMessage, String pTitle)
show Information Box
JOptionPane.showMessageDialog(pParent, pMessage, pTitle, JOptionPane.INFORMATION_MESSAGE);
intshowInformationConfirmBox(Component pParent, String pMessage, String pTitle, String pLeftOption, String pRightOption)
show Information Confirm Box
UIManager.put("OptionPane.noButtonText", pLeftOption);
UIManager.put("OptionPane.yesButtonText", pRightOption);
int result = JOptionPane.showConfirmDialog(pParent, pMessage, pTitle, JOptionPane.YES_NO_OPTION,
        JOptionPane.INFORMATION_MESSAGE);
UIManager.put("OptionPane.noButtonText", "No");
UIManager.put("OptionPane.yesButtonText", "Yes");
return result;
voidshowInformationMessage(Component component, String message, String title)
show Information Message
JOptionPane.showMessageDialog(component, message, title, JOptionPane.INFORMATION_MESSAGE);
voidshowInformationMessage(Component parent, String str)
Display information.
JOptionPane.showMessageDialog(parent, str, "Information!", JOptionPane.INFORMATION_MESSAGE);
voidshowInformationMessage(Component parent, String str)
Show message.
JOptionPane.showMessageDialog(parent, str, "Information!", JOptionPane.INFORMATION_MESSAGE);
voidshowInformationMessage(final JComponent parent, final String messge, final String title)
show Information Message
JOptionPane.showMessageDialog(parent, messge, title, JOptionPane.INFORMATION_MESSAGE);
voidshowStackTrace(Component parent, Exception e, String info)
Display a stack trace dialog.
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
JTextArea text = new JTextArea(sw.toString(), 60, 80);
JScrollPane stext = new JScrollPane(text);
stext.setPreferredSize(new Dimension(400, 200));
text.setCaretPosition(0);
text.setEditable(false);
...