Article View: borland.public.jbuilder.java.swing
Article #7508Re: Resizing problems
From: Torsten Welches
Date: Mon, 15 Jan 2001 19:46
Date: Mon, 15 Jan 2001 19:46
26 lines
1855 bytes
1855 bytes
John, agreed, of cause. I was only referring to the "XYLayout will never get you there" statement. Torsten John McGrath [TeamB] schrieb in Nachricht ... > >You can certainly set the LayoutManager to null and then override >componentResized() to arrange the components, although I think you >would be better off overriding doLayout(). You will also probably need >to override getPreferredSize() and getMinimumSize(), depending on how >your component might be used and what the parent component need to >know. > >But instead of doing that, why not just write a custom LayoutManager >for your component? You are writing essentially the same code, and if >you put the code in the form of a LayoutManager, you may find it useful >elsewhere. And if needed, someone using your component can replace the >LayoutManager. > >-- >Regards, > >John McGrath [TeamB]
Technical Details
Message-ID:
<3a635445_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!bornews.borland.com!dnews!195.14.254.152References:
<3A5CBA35.FBDC69B0@home.com> <3A5CCA16.7EC9FF9A@formlessvoid.com> <3a5db048$1_1@dnews> <3A5DFAC1.240F0CD6@formlessvoid.com> <3a5e194f_1@dnews> <MPG.14c9f6e410f0f395989e84@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ecab773c49c5caa6 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-15 11:54:07 PST From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Newsgroups: borland.public.jbuilder.java.swing References: <3A5CBA35.FBDC69B0@home.com> <3A5CCA16.7EC9FF9A@formlessvoid.com> <3a5db048$1_1@dnews> <3A5DFAC1.240F0CD6@formlessvoid.com> <3a5e194f_1@dnews> <MPG.14c9f6e410f0f395989e84@forums.borland.com> Subject: Re: Resizing problems Date: Mon, 15 Jan 2001 20:46:33 +0100 Lines: 29 X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 NNTP-Posting-Host: 195.14.254.152 Message-ID: <3a635445_1@dnews> X-Trace: 15 Jan 2001 11:49:25 -0800, 195.14.254.152 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.algonet.se!algonet!newsfeed1.uni2.dk!newssuck.uni2.dk!bornews.borland.com!dnews!195.14.254.152