Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4983
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Setting JList size |
| Date | 2012-02-02 17:27 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <jgf2lh$5ov$1@dont-email.me> (permalink) |
| References | <3365e0a4-b13f-4c2c-a2d8-8c31a9663593@x6g2000pbk.googlegroups.com> <jgeg8q$e9e$1@dont-email.me> <jgeu30$9ua$1@dont-email.me> <jgf0hk$osf$1@dont-email.me> |
On 02/02/2012 04:51 PM, markspace wrote: > On 2/2/2012 1:09 PM, Jeff Higgins wrote: >> list.setFont(list.getFont().deriveFont(16.0f)); > > setFont is a JComponent method. I wonder if the JList needs to be > informed somehow that its font has change? May need to poke around under > the code a bit to figure out how the view window is being calcualted to > understand what might not get updated. > > If nothing else, try a revalidate(); that causes the LayoutManager to > get involved, which may be what you want. > Not sure, but I think you would probably have to resize the containing frame and re-layout the whole schmoo. I think it would get fairly complex. Hopefully fred just needs the initial setVisibleRowCount().
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
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