Code example for JScrollPane

Methods: getViewport

0
    /** 
     * @overrides CScrollPane.scrollRectToVisible 
     */ 
    @Override 
    public void scrollRectToVisible(Rectangle contentRect) {
        scrollviewport.getViewport().scrollRectToVisible(contentRect);
    } 
 
    /** 
     * @overrides CScrollPane.setScrollingUnit 
     */ 
    @Override 
    public void setScrollingUnit(int x) {
        this.SCROLLINGUNIT = x;
        this.verticalbar.setScrollingUnit(x);
    } 
 
    /** 
     * @overrides CScrollPane.mouseWheelMoved 
     * TODO: This is duplicate code (In Hover, Glass, and Tackless ScollPanes)