Code example for Scrollbar

Methods: setMaximumsetVisibleAmount

0
                             ourDim.height - botDim.height ) ;
 
       Dimension dim = c.getSize() ;
 
       int vis = ourDim.height ;
       _right.setVisibleAmount( vis ) ;
       _right.setMaximum( dim.height - vis ) ;
       System.out.println( " dim : "+vis+ "  "+dim.width ) ;
 
    } 
 
    public void setTree( TreeNodeable node ){
        _tree.setTree( node ) ;
    } 
    @Override 
    public Dimension getPreferredSize(){ return new Dimension(300,300) ; }
    @Override 
    public Dimension getSize(){ return getPreferredSize() ; }
    // 
    // our layout manager