You will need to create your own JSlider class and override the paintComponent method. Be sure to call setOpaque (false) on the slider object.
public class CustomSlider extends JSlider { private Image img = null; public CustomSlider() { try { img = ImageIO.read(new File("background.jpg")); } catch (IOException e) { e.printStackTrace(); } } @Override public void paintComponent(Graphics g) {
source share