u.p("really starting new thread"); u.p("threaded = " + threaded);
    public synchronized void startLayout(Graphics g) {        if(isLayoutDone()) {            u.p("really starting new thread");            u.p("threaded = " + threaded);            done = false;            graphics = g;            if(threaded) {                new Thread(this).start();            } else {                run();            }        } else {            //u.p("layout already in progress. skipping layout");        }    }