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


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

Re: prevent JList from au

From "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Subject Re: prevent JList from au
Message-ID <7250bc7b4ef07@uwe> (permalink)
Newsgroups comp.lang.java.gui
References <1179410729.839583.164160@e65g2000hsc.googlegroups.com>
Date 2011-04-27 15:34 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Adam Sandler wrote:
..
>...I'd like to prevent a JList from
>resizing itself. 
>... Aren't the layout managers supposed
>to take care sizing?  

Yes - they take their strongest tip from the preferred size
of components.  If practical - a component is set to its 
preferred size.

>...If I set preferred size, does that conflict with
>the layout manager?  

No.  

>...And what impact could setting the preferred size
>have on different resolutions... especially if someone is using
>something different than 4:3 or 16:9?

If we set the preferred size, it is up to the us to 
calculate a sensible value.  This might be based 
on the the content (list items), screen size, other 
things, or combinations.  

>Any suggestions on how to proceed are greatly appreciated.

As far as the resolution goes, see Toolkit.getScreenSize().

-- 
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200705/1

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

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


Thread

prevent JList from automa "Adam Sandler" <adam.sandler@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
  Re: prevent JList from au "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000

csiph-web