title: Change the JSlider look and feel
body: <p>I have gone through this website <a href="http://www.java2s.com/Tutorial/Java/0240__Swing/CustomizingaJSliderLookandFeel.htm" rel="noreferrer">Change look and feel of <code>JSlider</code></a>
  but except for <code>Slider.altTrackColor</code> nothing else is working. I want to do something like shown in pic1 any suggestion would be of great help.  I'm working on JDK 1.6.</p>
  
  <pre><code>UIDefaults defaults = UIManager.getDefaults();    
  
         defaults.put("Slider.altTrackColor", Color.red);
         defaults.put("Slider.thumb", Color.red);
  </code></pre>
  
  <p>I have also tried this:</p>
  
  <pre><code>    WindowUtilities.setNativeLookAndFeel();
  
   // WindowUtilities.setNimbuzzLookAndFeel();
  
   // WindowUtilities.setJavaLookAndFeel();
  </code></pre>
  
  <p>WindowUtilities is class that tells the system to use native look and feel, as in previous releases. Metal (Java) LAF is the default otherwise.</p>
  
  <pre><code>public static void setNativeLookAndFeel() {
  try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  } catch(Exception e) {
    System.out.println("Error setting native LAF: " + e);
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/v4MQf.jpg" alt="I want slider in the right image to be like left"></p>