* @param t
*/
protected static void mess(String title, String typ, Throwable t, String icon, String mess, boolean exit) {
try {
TaskDialog task = new TaskDialog(null, "");
// show it
// build form
FormBuilder f = new FormBuilder("errorform.info");
f.getHeader("basic").setTitle(I18N.t("More Infos (optional)")).setIcon("mail");
f.addElement("basic.contact", new FormTextField(I18N.t("eMail"), "").setInfoTxt(I18N.t("Add email, if you wish an answer.")));
f.addElement("basic.details", new FormTextArea(I18N.t("Last Action"), "").setInfoTxt(I18N
.t("Write your last steps, action, or comments about this error")));
// add details
// f.addHeader("error", new FormHeader(I18N.t("Details"),
// icon).setCollapsed(true));
// f.addElement("error.class", new FormTextField(I18N.t("Class"),
// t.getClass().toString()));
// f.addElement("error.mess", new FormTextField(I18N.t("Message"),
// YEx.toString(title, t, false)));
// f.addElement("error.stack", new FormTextArea(I18N.t("Stack"),
// Strings.stackStraceAsString(t)));
task.setInstruction(I18N.t("Send {0}report", typ));
task.setText(mess + "<br>" + YEx.toString(title, t, false));
task.setIcon(IconCache.get(icon, 64));
task.setResizable(true);
task.setFixedComponent(f.getPanel(true));
task.setCommands(StandardCommand.OK.derive(I18N.t("Send {0}", typ)),
StandardCommand.CANCEL.derive(I18N.t(exit ? "Close program" : "Ignore")));
TaskDialog.Command erg = task.show();
if (erg != null && erg.getTitle().equals(I18N.t("Send {0}", typ))) {
// send feedback
sendError(t, title, f.getElement("basic.contact").getContentAsString(), f.getElement("basic.details").getContentAsString());
} else {
// close?