u.p("new context end");
    private void newContext( Graphics g ) {        u.p("new context begin");        Point origin = new Point( 0, 0 );        Point last = new Point( 0, 0 );        c.canvas = this;        c.graphics = g;        // set up the dimensions of the html canvas        //Rectangle dimensions = new Rectangle(this.getWidth(),this.getHeight());//layout.bwidth, layout.bheight);        //c.canvas_graphics = g.create();        //c.setExtents(new Rectangle(0,0,this.getWidth(),this.getHeight()));        //u.p("viewport size = " + viewport.getSize());        if ( enclosingScrollPane != null ) {            c.setExtents( new Rectangle( enclosingScrollPane.getViewportBorderBounds() ) );        } else {            c.setExtents( new Rectangle( 200, 200 ) );        }        //c.setExtents(new Rectangle(0,0,viewport.getWidth(),viewport.getHeight()));        c.viewport = this.enclosingScrollPane;        c.cursor = last;        c.setMaxWidth( 0 );        u.p("new context end");    }