List of utility methods to do JOptionPane Error
void | showErrorDialog(JFrame parent, Exception ex) show Error Dialog JTextArea textArea = new JTextArea(); textArea.setFont(new Font("Sans-Serif", Font.PLAIN, 10)); textArea.setEditable(false); StringWriter writer = new StringWriter(); ex.printStackTrace(new PrintWriter(writer)); textArea.setText(writer.toString()); JScrollPane scrollPane = new JScrollPane(textArea); scrollPane.setPreferredSize(new Dimension(350, 150)); ... |
void | showErrorMessage(Component c, Exception e) show Error Message JOptionPane.showMessageDialog(c, "Error caught: " + e.getMessage(), "ERROR", JOptionPane.ERROR_MESSAGE); |
void | showErrorMessage(Component parent, String message) Method used to show an error dialog on the screen JOptionPane.showMessageDialog(parent, message, "Error", JOptionPane.ERROR_MESSAGE);
|
void | showErrorMessage(Component parent, String str) Display error message. JOptionPane.showMessageDialog(parent, str, "Error!", JOptionPane.ERROR_MESSAGE);
|
void | showErrorMessage(Component parent, String str) Show error message. JOptionPane.showMessageDialog(parent, str, "Error!", JOptionPane.ERROR_MESSAGE);
|
void | showErrorMessage(Component parent, Throwable error) show Error Message String message; if (error.getMessage() != null) { message = error.getMessage().replaceAll(":", ":\n"); } else { message = error.getClass().getName(); error.printStackTrace(); JOptionPane.showMessageDialog(parent, message, "Error", JOptionPane.ERROR_MESSAGE); ... |
void | showErrorMessage(Component parentComponent, String message, String title) show Error Message showMessage(parentComponent, title, message, JOptionPane.ERROR_MESSAGE); |
void | showErrorMessage(Component theParent, String theMessage) show Error Message JOptionPane.showMessageDialog(theParent, theMessage, "hUnit", JOptionPane.ERROR_MESSAGE);
|
void | showErrorMessage(final JComponent parent, final String message, final String title) show Error Message JOptionPane.showMessageDialog(parent, message, title, JOptionPane.ERROR_MESSAGE); |
void | showErrorMessage(final Window aParent, final String aMessage) Convenience method to show an error message. JOptionPane.showMessageDialog(aParent, aMessage, "Error ...", JOptionPane.ERROR_MESSAGE);
|