Java Utililty Methods JOptionPane Error

List of utility methods to do JOptionPane Error

Description

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

Method

voidshowPrettyErrorPane(Component caller, String msg)
show Pretty Error Pane
JOptionPane.showMessageDialog(caller, "<html><body><p style='width: 200px;'>" + msg + "</p></body></html>",
        "Error", JOptionPane.ERROR_MESSAGE);
voidshowSettopLockError(String macAddress)
When an error occurs while locking settop, the method brings up a dialog that displays the mac address and error message.
JOptionPane.showMessageDialog(null,
        "Problems in attempting to lock  Settop[" + macAddress + "].\n"
                + "NOTE: You must be streaming the settop prior to checking the lock!\n"
                + "Please click the Streaming button to allow selecting the lock button.",
        "Unable to lock Settop", JOptionPane.ERROR_MESSAGE);
voidsimpleError(Exception e, Component parent)
simple Error
StringWriter writer = new StringWriter();
e.printStackTrace(new PrintWriter(writer));
String message = writer.toString();
JOptionPane.showMessageDialog(parent, message, "Error", JOptionPane.ERROR_MESSAGE);