question: private void initializeSparseSlider ( ) { connectionDensitySlider . setMajorTickSpacing ( 10 ) ; connectionDensitySlider . setMinorTickSpacing ( 2 ) ; connectionDensitySlider . setPaintTicks ( true ) ; Hashtable < Integer , JLabel > labelTable2 = new Hashtable < Integer , JLabel > ( ) ; labelTable2 . put ( new Integer ( 0 ) , new JLabel ( "0%" ) ) ; labelTable2 . put ( new Integer ( 100 ) , new JLabel ( "100%" ) ) ; connectionDensitySlider . setLabelTable ( labelTable2 ) ; connectionDensitySlider . setPaintLabels ( true ) ; }
target:  Initializes the sparse slider.