Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #4754

Re: Setting font of JSlider

From Fred <fred.l.kleinschmidt@gmail.com>
Newsgroups comp.lang.java.gui
Subject Re: Setting font of JSlider
Date 2011-11-17 08:27 -0800
Organization http://groups.google.com
Message-ID <6e61fa11-e0d6-43c0-a6d9-7f553509b999@f3g2000pri.googlegroups.com> (permalink)
References <84432b53-6264-4adc-82f6-632e19b7288b@m13g2000prl.googlegroups.com> <ja1j34$q5a$1@dont-email.me>

Show all headers | View raw


On Nov 16, 4:04 pm, markspace <-@.> wrote:
> On 11/16/2011 2:39 PM, Fred wrote:
>
> > How do I set the font of a JSlider after it has been created, such
> > that its size is correct if it is the child of a JPanel used to
> > display a border ?
>
> Yup, it clips.  After about a font size of 22, I get pretty noticeable
> clipping.  Also, the labels tend to display on top of each other.
>
> Dems the breaks.  Code has bugs.  Submit a bug report to Oracle, and it
> might be fixed in Java 8.
>
> 22 is a pretty big font size.  Do you really need labels that big?

No, I don't. I was just using it in this example to make it obvious
that clipping happened.
--
Fred K

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Setting font of JSlider Fred <fred.l.kleinschmidt@gmail.com> - 2011-11-16 14:39 -0800
  Re: Setting font of JSlider markspace <-@.> - 2011-11-16 16:04 -0800
    Re: Setting font of JSlider Fred <fred.l.kleinschmidt@gmail.com> - 2011-11-17 08:27 -0800
      Re: Setting font of JSlider markspace <-@.> - 2011-11-17 08:36 -0800
  Re: Setting font of JSlider Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 03:24 -0800
    Re: Setting font of JSlider Roedy Green <see_website@mindprod.com.invalid> - 2011-11-18 07:29 -0800

csiph-web