Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Daniel Pitts" Subject: Re: Screen Resolution Message-ID: X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <5qj5d0F101juuU1@mid.dfncis.de> References: <5qj5d0F101juuU1@mid.dfncis.de> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 31 Date: Wed, 27 Apr 2011 15:41:15 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918875 96.60.20.240 (Wed, 27 Apr 2011 10:41:15 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:41:15 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:2806 To: comp.lang.java.gui Abdelali Adil wrote: > > Andrew Thompson wrote: >> I agree about the interesting part. I am a strong advocate of the >> fact that if there is any complexity whatsoever in a custom layout, >> it should be encapsulated (written, coded) in a LayoutManager. >> >> ( Definining a custom layout manager is a lot easier than most >> people think. ) >> >> OTOH - a lot of the things people expect can only be provided by a >> custom LM (or a null LM) can coded using Sun standard >> LMs, just by using 'nested layouts'. > > You 're right, but in my case it's only a prototype. > If its only a prototype, what about using a GUI builder? In any case, you don't really care about screen resolution as much as you care about component size, correct? Look at ComponentListener, it can receive an event when the component changes size. (assuming you add it to the correct component :-) ) -- Daniel Pitts' Tech Blog: --- * 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