doPaint( g );
if ( body_box == null ) { calcLayout( g ); }  if ( doc == null ) { return; }  newContext( g ); layout_thread.startRender(g);
    public void paintComponent( Graphics g ) {        //g.setColor(Color.blue);        //g.drawLine(0,0,50,50);        //u.p("paint() size = " + this.getSize());        //u.p("viewport size = " + this.viewport.getSize());        //u.p("w/o scroll = " + this.viewport.getViewportBorderBounds());        if ( anti_aliased ) {            ( (Graphics2D)g ).setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );        }        doPaint( g );        //u.p("paint ending");    }