private JSlider getSliderThreadsPerHost ( ) { if ( sliderThreadsPerHost == null ) { sliderThreadsPerHost = new PositiveValuesSlider ( Constant . MAX_THREADS_PER_SCAN ) ; sliderThreadsPerHost . addChangeListener ( new ChangeListener ( ) { @ Override public void stateChanged ( ChangeEvent e ) { setLabelThreadsPerHostValue ( getSliderThreadsPerHost ( ) . getValue ( ) ) ; } } ) ; } return sliderThreadsPerHost ; }
This method initializes sliderThreadsPerHost