Article View: borland.public.jbuilder.java.language
Article #19596Re: XYLayout *is* buggy (-1)
From: Rich Wilkman
Date: Tue, 27 Jan 1998 00:00
Date: Tue, 27 Jan 1998 00:00
52 lines
2628 bytes
2628 bytes
Fabian: Can you give me a snippet of code? Off the top of my head I'd say that in the designer the insets for the Frame aren't being figured properly and when the application gets into the "real world" there is a slightly different result in the calcualtion. However small, 12 pixels would be noticed. Fabian Beutin wrote: > > Rich Wilkman wrote: > > > If you size something down so that either it's height or width is the > > same as the preferred size you will get a -1 for that portion of the > > constraint. Why? Because preferred size is the more proper java > > mechanism. > > > > Bug? Difference of opinion there. It's working the way it was > > designed to work. > > ...and howcome the component has a different size when the program is > executed than it has in the designer? > This happens only when there's one of those -1's in the constraints. > There shouldn't be anything wrong with what doLayout reprots since the > component is a simple BorderLayout. > Conclusion? A bug I'd say - in your XYLayout -! > For (once again) there is abolutely *no* reason to go for default values > (which don't always match as described above) when the user is giving > absolute values by hand. To be absolutely clear on this: whenever > somebody specifies something directly, with absolute values, a XY layout > should just take those and not mess around with em... > A layout (and a designer) which don't result in programs looking exactly > the same as at design time certainly *are* buggy. > > Regards, > Fabian. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<34CE0A78.9542FD71@corp.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34C6C5D2.CB579D92@berlin.snafu.de> <34C7851F.2F17D94@corp.borland.com> <34C7EB37.D5432DB3@berlin.snafu.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,bea07c142ab743f4 X-Google-Attributes: gidf74b3,public From: Rich Wilkman <rwilkman@corp.borland.com> Subject: Re: XYLayout *is* buggy (-1) Date: 1998/01/27 Message-ID: <34CE0A78.9542FD71@corp.borland.com> X-Deja-AN: 319698052 Content-Transfer-Encoding: 7bit References: <34C6C5D2.CB579D92@berlin.snafu.de> <34C7851F.2F17D94@corp.borland.com> <34C7EB37.D5432DB3@berlin.snafu.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: None Newsgroups: borland.public.jbuilder.java.language