public class ApplicationErrorHelper extends Object implements org.jdesktop.swingx.error.ErrorReporter
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationUIContext |
context |
| Constructor and Description |
|---|
ApplicationErrorHelper(ApplicationUIContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected Component |
createHTML(String html)
Create JPane with scroll to prevent windows bigger than screen resolution
|
void |
reportError(org.jdesktop.swingx.error.ErrorInfo errorInfo) |
void |
showErrorDialog(String message)
Display a user friendly error frame.
|
void |
showErrorDialog(String message,
Throwable cause)
Display a user friendly error frame.
|
void |
showWarningDialog(String message)
Display a user friendly warning frame.
|
protected ApplicationUIContext context
public ApplicationErrorHelper(ApplicationUIContext context)
protected Component createHTML(String html)
html - public void showErrorDialog(String message, Throwable cause)
message - message for usercause - exception causepublic void showErrorDialog(String message)
message - message for userpublic void reportError(org.jdesktop.swingx.error.ErrorInfo errorInfo)
throws NullPointerException
reportError in interface org.jdesktop.swingx.error.ErrorReporterNullPointerExceptionpublic void showWarningDialog(String message)
message - message for userCopyright © 2008–2017 Ultreia.io. All rights reserved.