super(true);
JSlider mySlider = new JSlider();
mySlider.setMajorTickSpacing(20);
mySlider.setMinorTickSpacing(10);
mySlider.setPaintTicks(true);
mySlider.setPaintLabels(true);
CurvedBorder border = new CurvedBorder(10, Color.darkGray);
mySlider.setBorder(border);
add(mySlider);