code: public void setText(Exception e) {
  		StringWriter wr = new StringWriter();
  		PrintWriter pr = new PrintWriter(wr);
  		e.printStackTrace(pr);
  		this.setText(wr.toString());
  	}
docs: *
  Puts the stack trace of the given exception as the text of this message
  dialog.