No.Here is my code
public class SwingSliderExample1
{
public static void main(
String args[])
{
JFrame f = new JFrame("JSlider Sample");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container content = f.getContentPane();
JSlider slider = new JSlider(0,100,35); //line no 8
slider.setMinorTickSpacing(1);
slider.setMajorTickSpacing(10);
slider.setPaintTicks(true);
slider.setPaintLabels(true);
content.add(slider, BorderLayout.CENTER);
f.setSize(800, 500);
f.setVisible(true);
}
}
Here the value labels are displayed 0..10..20......100.i.e in interval of 10.Now in addtion to these labels ,i want 35(which is set in line 35) also to be displayed.So my final range should be 0..10..20..30..35..40..50..60..70..80..90..100