| javax.swing.JDialog org.jfree.report.modules.gui.commonswing.ExceptionDialog
ExceptionDialog | public class ExceptionDialog extends JDialog (Code) | | The exception dialog is used to display an exception and the exceptions stacktrace to
the user.
author: Thomas Morgner |
Constructor Summary | |
public | ExceptionDialog() Creates a new ExceptionDialog. |
Method Summary | |
public void | adjustSize() Adjusts the size of the dialog to fit the with of the contained message and
stacktrace. | public Exception | getException() Returns the exception that was the reason for this dialog to show up. | public String | getMessage() Returns the message for this exception dialog. | protected boolean | isScrollerVisible() Checks, whether the scroll pane of the exception stack trace area is visible. | public void | setException(Exception e) Sets the exception for this dialog. | public void | setMessage(String mesg) Sets the message for this exception dialog. | protected void | setScrollerVisible(boolean b) Defines, whether the scroll pane of the exception stack trace area is visible. | public static void | showExceptionDialog(String title, String message, Exception e) Shows an default dialog with the given message and title and the exceptions
stacktrace in the detail area. |
ExceptionDialog | public ExceptionDialog()(Code) | | Creates a new ExceptionDialog.
|
adjustSize | public void adjustSize()(Code) | | Adjusts the size of the dialog to fit the with of the contained message and
stacktrace.
|
getException | public Exception getException()(Code) | | Returns the exception that was the reason for this dialog to show up.
the exception. |
getMessage | public String getMessage()(Code) | | Returns the message for this exception dialog. The message is displayed on the main
page.
the message. |
isScrollerVisible | protected boolean isScrollerVisible()(Code) | | Checks, whether the scroll pane of the exception stack trace area is visible.
true, if the scroller is visible, false otherwise. |
setException | public void setException(Exception e)(Code) | | Sets the exception for this dialog. If no exception is set, the "Detail" button is
disabled and the stacktrace text cleared. Else the stacktraces text is read into the
detail message area.
Parameters: e - the exception. |
setMessage | public void setMessage(String mesg)(Code) | | Sets the message for this exception dialog. The message is displayed on the main
page.
Parameters: mesg - the message. |
setScrollerVisible | protected void setScrollerVisible(boolean b)(Code) | | Defines, whether the scroll pane of the exception stack trace area is visible.
Parameters: b - true, if the scroller should be visible, false otherwise. |
showExceptionDialog | public static void showExceptionDialog(String title, String message, Exception e)(Code) | | Shows an default dialog with the given message and title and the exceptions
stacktrace in the detail area.
Parameters: title - the title. Parameters: message - the message. Parameters: e - the exception. |
|
|