Here you can find the source of fixWinSliderUI(JSlider s)
public static void fixWinSliderUI(JSlider s)
//package com.java2s; //License from project: LGPL import java.awt.Dimension; import javax.swing.JSlider; import javax.swing.plaf.basic.BasicSliderUI; public class Main { public static void fixWinSliderUI(JSlider s) { if (System.getProperty("os.name").toLowerCase().contains("win")) { s.setUI(new BasicSliderUI(s) { protected Dimension getThumbSize() { Dimension old = super.getThumbSize(); return new Dimension(old.width * 2, old.height); }/*ww w. j ava2s . c om*/ }); } } }