*/
    public void print(final boolean withDialog) {
        if (printMenuItem != null) {
            printMenuItem.setEnabled(false);
        }
        if (printButton != null) {
            printButton.setEnabled(false);
        }

        Runnable runner = new Runnable() {
            public void run() {
                initialisePrinting(withDialog);
            }
        };
        Thread t = new Thread(runner);
        t.setPriority(Thread.MIN_PRIORITY);
        t.start();
    }