Re: how to set (preferred) JSlider length?



Thank you all for your replies, I really appreciate, but... none of
these suggestions work - any calls to setPreferredSize,
setMinimumSize, maximumSize, none of these have any effect, with most
layout managers, they just ignore them

the solution, I found out from an article written by some guru:

To set size of your component and still work with a layout manager:

write your own subclass , and override getPreferredSize, which is what
the layout manager calls.

(He chastises Sun for misleading and lack of documentation. )


Thank you again for your comments.
.