Java Swing Custom Slider Image

192 Views Asked by At
1

There are 1 best solutions below

0
Arsh Coder On

May be this may help you:- Add this in your main method.

    Icon icon = new ImageIcon("slider.png");
    UIDefaults defaults = UIManager.getDefaults();
    defaults.put("Slider.horizontalThumbIcon", icon);