void setScrollAttribute(CS355SScrollbarAttrConsts scrollBar, CS355SScrollbarAttrConsts attribute, int number) 
    {
        JScrollBar scrollbarToChange = null;
        switch (scrollBar)
        {
            case H_SCROLL_BAR:
                scrollbarToChange = jScrollBar2;
                break;
            case V_SCROLL_BAR:
                scrollbarToChange = jScrollBar1;
                break;
            default:
                throw new IllegalArgumentException("Bad scrollbar type!");
                    
        }
        switch (attribute)
        {
            case MAX:
                scrollbarToChange.setMaximum(number);
                break;
            case MIN:
                scrollbarToChange.setMinimum(number);
                break;
            case KNOB:
                scrollbarToChange.setVisibleAmount(number);
                break;
            case POSIT:
                scrollbarToChange.setValue(number);
                break;
            default:
                throw new IllegalArgumentException("Bad Attribute type!");
                    
        }
    }