Skip to content

Instantly share code, notes, and snippets.

@eugener
Created October 16, 2010 02:58
Show Gist options
  • Save eugener/629348 to your computer and use it in GitHub Desktop.
Save eugener/629348 to your computer and use it in GitHub Desktop.
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