Search code examples
javaswingjslider

How to get thumb icon of swing jslider?


I need to get the thumb icon which is used to select range in Jslider. How to get only the thumb icon from Jslider?


Solution

  • Something like:

    UIDefaults defaults = UIManager.getDefaults();
    Icon icon = defaults.getIcon("Slider.horizontalThumbIcon");