Guest User

Untitled

a guest
Jun 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. TaskDialog dlg = new TaskDialog("Application Error" );
  2. dlg.setInstruction( "CRASH AND BURN!");
  3. dlg.setIcon( TaskDialog.StandardIcon.ERROR );
  4. dlg.setText( "The applicaiton has performed an illegal action. This action has been logged and reported." );
  5. dlg.getDetails().setExpandedComponent(
  6. new JLabel( toHtml(" javax.activity.InvalidActivityException \n " +
  7. "at com.ezware.dialog.task.TaskDialogTestBed.main(TaskDialogTestBed.java:316)")));
  8. dlg.getFooter().setText( "Your application chrashed because a developer forgot to write a unit test");
  9. dlg.getFooter().setIcon( TaskDialog.StandardIcon.WARNING );
  10. dlg.getFooter().setCheckBoxText( "Don't show me this error next time" );
  11. dlg.getFooter().setCheckBoxSelected( true );
  12. dlg.show();
Add Comment
Please, Sign In to add comment