-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
beta
-
generic
-
generic
Name: clC74495 Date: 11/02/98
When using a JSlider, I want to change the icon for the thumb.
The following code changes it fine:
Icon icon = new ImageIcon("file.gif");
IconUIResource iconResource = new IconUIResource(icon);
UIDefaults defaults = UIManager.getDefaults();
defaults.put("Slider.horizontalThumbIcon", iconResource);
However, the height of the icon is not honored by the preferred size of the slider.
I think this is a bug. Or, must the horizontal icon only be as tall as the preferred size of the slider?
(Review ID: 41593)
======================================================================