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

Foreground color set on JSlider is not used for painting labels

XMLWordPrintable

    • beta
    • generic
    • generic

      When foreground color is set on JSlider, the color is used only for painting the ticks. The color is not set for labels of JSlider (screenshot attached) If foreground color is set, it must be used for labels as well.


      The behaviour is LAF dependent.
      1) Metal -> Ticks are painted using foreground color
      2) Motif -> Thumnails are painted using foreground color
      3) Windows -> Foreground color is not used at all
      4) GTK -> Foreground color is used for ticks and value (not for labels)

      Compile and run JSliderTest.java

            apikalev Andrey Pikalev
            rmenonsunw Rakesh Menon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: