*/
protected void previewPrintText(final JTextArea texto, final JDialog dialog) {
this.setCursor(new Cursor(Cursor.WAIT_CURSOR));
Thread t = new Thread(new Runnable() {
public void run() {
PrintText it = new PrintText(texto,
new PageFormat());
PrintPreviewer pp = new PrintPreviewer(
it, 0);
JDialog dlg = new JDialog(dialog,