[cp-patches] FYI: JSlider fixes

Roman Kennke roman at kennke.org
Sat Oct 14 11:09:13 UTC 2006


> Does this work for you?  After this change, in our Swing demo I just see 
> "..." instead of text for all of the labels.

We must call setLabelTable() rather than setting the field directly, so
that the label's sizes get updated correctly. Fixed by attached patch.

2006-10-13  Roman Kennke  <kennke at aicas.com>

	PR 27956
	* javax/swing/JSlider.java
	(setPaintLabels): Call setLabelTable() instead of setting
	the field directly. This also updates the label's size.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 1421 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20061014/7a781344/patch.bin

More information about the Classpath-patches mailing list