Code example for Scrollbar

0
 
        sbHoriz = new Scrollbar(Scrollbar.HORIZONTAL);
 
        add(sbHoriz);
 
        sbVert = new Scrollbar(Scrollbar.VERTICAL);
 
        add(sbVert);
    } 
 
    /** 
     * Method declaration 
     * 
     * 
     * @param d 
     */ 
    public void setMinimumSize(Dimension d) {
        dMinimum = d;
    } 
 
Connect your IDE to all the code out there  Get Codota for Java