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


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

Re: Setting JList size

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.gui
Subject Re: Setting JList size
Date 2012-02-03 05:26 -0500
Organization A noiseless patient Spider
Message-ID <jggcoe$2a5$1@dont-email.me> (permalink)
References (1 earlier) <jgeg8q$e9e$1@dont-email.me> <jgeu30$9ua$1@dont-email.me> <jgf0hk$osf$1@dont-email.me> <jgf2lh$5ov$1@dont-email.me> <nospam-A52608.20144302022012@news.aioe.org>

Show all headers | View raw


On 02/02/2012 08:14 PM, John B. Matthews wrote:
>
> This related example [1] invokes pack() to resize the enclosing Window
> as rows are added, up to a defined limit. Because pack() calls
> validate(), the example works with Jeff's suggestion in the
> ActionListener: list.setFont(list.getFont().deriveFont(16.0f));
>
> If the Window can remain fixed in size, it's enough to just do as
> markspace suggests: list.revalidate()
>
> [1]<http://stackoverflow.com/a/5760093/230513>

:) Thanks! Much appreciated.

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


Thread

Setting JList size Fred <fred.l.kleinschmidt@gmail.com> - 2012-02-02 08:10 -0800
  Re: Setting JList size Knute Johnson <nospam@knutejohnson.com> - 2012-02-02 09:08 -0800
    Re: Setting JList size Fred <fred.l.kleinschmidt@gmail.com> - 2012-02-02 13:29 -0800
      Re: Setting JList size Lew <lewbloch@gmail.com> - 2012-02-05 00:50 -0800
      Re: Setting JList size Knute Johnson <nospam@knutejohnson.com> - 2012-02-07 10:13 -0800
        Re: Setting JList size Lew <lewbloch@gmail.com> - 2012-02-07 11:13 -0800
  Re: Setting JList size Jeff Higgins <jeff@invalid.invalid> - 2012-02-02 12:13 -0500
    Re: Setting JList size Jeff Higgins <jeff@invalid.invalid> - 2012-02-02 16:09 -0500
      Re: Setting JList size markspace <-@.> - 2012-02-02 13:51 -0800
        Re: Setting JList size Jeff Higgins <jeff@invalid.invalid> - 2012-02-02 17:27 -0500
          Re: Setting JList size "John B. Matthews" <nospam@nospam.invalid> - 2012-02-02 20:14 -0500
            Re: Setting JList size Jeff Higgins <jeff@invalid.invalid> - 2012-02-03 05:26 -0500

csiph-web