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

[Nimbus] Code to set a single slider's thumb background doesn't work as specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 6u10, 7
    • client-libs
    • None
    • b84
    • generic, x86
    • generic, linux_ubuntu

        Attached is the example. This little demo was written by Jasper and does not work as specified. I was able to workaround the problem in one of two ways:
        - Set the thumb background painter for all 7 states of the thumb.
        OR
        - Change the order that these two methods are called:
        slider.putClientProperty("Nimbus.Overrides", sliderDefaults);
        slider.putClientProperty("Nimbus.Overrides.InheritDefaults", false);

        See bug 6752660 for more info on the putClientProperty ordering.

              peterz Peter Zhelezniakov
              sharonz Sharon Zakhour (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: