Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4186347

Problems changing the Slider.horizontalThumbIcon UIResource

XMLWordPrintable

    • 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)
      ======================================================================

            kereminsunw Konstantin Eremin (Inactive)
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: