List of utility methods to do JOptionPane Error
void | showPrettyErrorPane(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); |
void | showSettopLockError(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); |
void | simpleError(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); |