Code example for JSlider

Methods: getValue

0
     * Returns the lower value specified by this component. 
     * 
     * @return  low cut value; 0<=val<=1 and val<=getHighValue() 
     */ 
    public double getLowValue() { 
        return Math.exp( loSlider_.getValue() / (double) SCALE );
    } 
 
    /**  
     * Returns the upper value specified by this component. 
     * 
     * @return  high cut value; 0<=val<=1 and val>=getLowValue() 
     */ 
    public double getHighValue() { 
        return 1.0 - Math.exp( - hiSlider_.getValue() / (double) SCALE );
    } 
 
    /** 
     * Returns a string suitable for labelling the sliders at a given value. 
     * 
Contextual code suggestions in your IDE  Get Codota for Java