Created
October 16, 2010 02:58
-
-
Save eugener/629348 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TaskDialog dlg = new TaskDialog("Application Error" ); | |
dlg.setInstruction( "CRASH AND BURN!"); | |
dlg.setIcon( TaskDialog.StandardIcon.ERROR ); | |
dlg.setText( "The applicaiton has performed an illegal action. This action has been logged and reported." ); | |
dlg.getDetails().setExpandedComponent( | |
new JLabel( toHtml(" javax.activity.InvalidActivityException \n " + | |
"at com.ezware.dialog.task.TaskDialogTestBed.main(TaskDialogTestBed.java:316)"))); | |
dlg.getFooter().setText( "Your application chrashed because a developer forgot to write a unit test"); | |
dlg.getFooter().setIcon( TaskDialog.StandardIcon.WARNING ); | |
dlg.getFooter().setCheckBoxText( "Don't show me this error next time" ); | |
dlg.getFooter().setCheckBoxSelected( true ); | |
dlg.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment