0

I needed a Multi Thumb Slider for java swing and i ended up using this Multi knob (thumb) JSlider in Swing, after applying several tweaks to it as required by my application i made it working perfectly for the default or Metal LAF....

However I now need to change the applications Look and Feel to Nimbus, however this custom component is throwing an NPE in Nimbus.

The problem lies in its custom UI which calls super methods which use the basic UIManager properties which are not found in NImbus.

I have searched a lot on google and stumbled across Multi thumb slider in Nimbus L&F and Custom Slider UI throws NPE with Nimbus but no workaround yet.

any help would be appreciated

mKorbel
  • 109,525
  • 20
  • 134
  • 319
tariq khan
  • 62
  • 5

1 Answers1

0

I think the JXMultiThumbSlider component from the SwingX project should work with Nimbus, generally SwingX supports Nimbus.

BTW, the easiest way to get the SwingX is to configure as a Maven dependency, because the website it not well-maintained (but the code is of high quality).

    <dependency>
        <groupId>org.swinglabs.swingx</groupId>
        <artifactId>swingx-all</artifactId>
        <version>1.6.5</version>
    </dependency>
lbalazscs
  • 17,474
  • 7
  • 42
  • 50
  • i tried using swingx but as u said, the website is terrible... but since I have invested a lot of time in the multislider that I am originally using, I thought it would be nice if I could tweak on this one itself.... anyways i think i would have to google more on this stuff – tariq khan Feb 28 '13 at 05:20