Code example for JSlider

Methods: setFont

0
    { 
        super.setFont(font);
 
        if (_label != null) {
            _label.setFont(font);
            _slider.setFont(font);
            _value.setFont(font);
        } 
    } 
 
    /** 
     * Updates the label displayed to the left of the slider. 
     */ 
    public void setLabel (String label)
    { 
        _label.setText(label);
        _label.setVisible(!StringUtil.isBlank(label));
    } 
 
    /**