RangeSlider with ClientProperty "JSlider.isFilled"

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

RangeSlider with ClientProperty "JSlider.isFilled"

Postby Reyada Wolak » Mon Feb 21, 2011 11:15 pm

Hi,

I have tried custom L&F with RangeSlider.putClientProperty("JSlider.isFilled", Boolean.TRUE);
but it is not giving me the correct color for the custom L&F. it gives me the color for metal.
any hints.
Reyada Wolak
 
Posts: 10
Joined: Tue May 26, 2009 9:03 pm

Re: RangeSlider with ClientProperty "JSlider.isFilled"

Postby JIDE Support » Wed Feb 23, 2011 3:34 pm

To make this client property effective in other custom L&F, you have to create your customized SliderUI class and paint the filler as MetalSliderUI does. You could override BasicSliderUI#paintTrack() to achieve your goal.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: RangeSlider with ClientProperty "JSlider.isFilled"

Postby Reyada Wolak » Wed Feb 23, 2011 11:03 pm

thanks for the info
i guess it is more complicated than i though. i will try to achieve the same functionality in different way.
Reyada Wolak
 
Posts: 10
Joined: Tue May 26, 2009 9:03 pm


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 71 guests