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,
resource.getString("previewLogToolTip"));
dlg.getContentPane().add(pp);