public void setValue(int i) {
            if (this.slider != null) {
                this.slider.setValue(i);
            }
            if (this.spinner != null) {
                this.spinner.setValue(new Integer(i));
            }
        }