[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/27956] JSlider getPreferredSize too small when labels enabled
From: |
david dot gilbert at object-refinery dot com |
Subject: |
[Bug swing/27956] JSlider getPreferredSize too small when labels enabled |
Date: |
13 Jun 2006 16:14:26 -0000 |
------- Comment #3 from david dot gilbert at object-refinery dot com
2006-06-13 16:14 -------
(In reply to comment #2)
> > The positioning of the labels relative to the tick marks could be a more
> > general problem...if you compare the Swing demo running with GNU Classpath
> > and Sun's JRE, you'll see other places where the label positioning is a
> > little off.
>
> No problem; I don't think we should strive for pixel-compatibility with Sun
> at all. IMO, the main point of plaf is that users recognize the look and
> feel of the user interface, so that they unconsciously feel at home.
> (Given the recent trend of "skins" and completely non-standard Windows apps,
> users are learning to become a little flexible anyway...)
>
> But the free Swing *should* look good, and I personally would prefer
> an extra pixel of space between the ticks and labels :-)
Yes, it definitely needs fixing (as does the vertical positioning of the text
for a JCheckBox and a JRadioButton, because these look bad too, even though it
is a little less obvious than the JSlider text). I just didn't want to make an
adjustment in BasicSliderUI when, I'm guessing, the real fix needs to go in
SwingUtilities. Another day when I have more time, I'll chase that bug down.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27956