Submitted On 16-DEC-1999
jtr
I was just about to enter a bug against GridBagLayout with a similiar comment
when I found this one.
GridBagLayout needs to be changed so it uses some value between the
minimum size and the preferred size when the preferred size doesn't fit.
Or maybe start with the mininum size and scale by the weights.
Submitted On 01-AUG-2000
svenmeier
Who did the evaluation on 2000-07-28 ?? That's bullshit,
the textField isn't to blame for this one. The original
synopsis was "GridBagLayout cripples new Swing"!!!
Submitted On 28-NOV-2000
svenmeier
You can count the votes on bug #4188906 for this one.
Submitted On 14-MAY-2001
svenmeier
You can count the votes on bug #4247013 for this one too.
Submitted On 14-OCT-2001
bernie01
IMHO: The solution should be to use fill. This could put an
end to the total confusion that GridBagLayout (GBL) creates
(just search the news and you know why). GBL is totally
screwed up.
If minimum, preferred and maximum size AND fill != NONE are
all set, then GBL should allocate space smoothly between
the extremes depending on allocated space in the cell.
Another fundamental change that we need for this is as follows:
If the available space in the cell is equal or greater than
maximumSize then the component should get maximum size if
corresponding fill is set. If fill is not set then it should
get preferredSize.
Currently GBL totally ignores maximumSize of components in
its cells which is a shame. GBL is such a good tool and it
should be fixed with common sense as to implement what can
be expeced from it.
Submitted On 01-MAR-2002
cpell
If a layout cannot accommodate a preferred size, throwing up
its arms and using the minimum size hardly seems like the
best alternative. To me, "preferred size" means "I would
like to be this size." So if I were writing a layout, I
would try to make a child component as close to its
preferred size as possible. If there isn't enough room,
then make it as large as room permits---in other words, as
close to its preferred size as room permits. Thus, if the
available space is smaller than the preferred size, I expect
the child component to act like it is set to fill that
dimension, because it is striving for its preferred size.
Submitted On 14-JUL-2004
svenmeier
No comment:
http://madbean.com/blog/2004/17/totallygridbag.html
Submitted On 09-OCT-2004
osgafi
Not only Jtextfields, also Jlabels, and Jscrollpane have this problem
Submitted On 10-APR-2008
gat
According to (6467248) evaluation "When using MToolkit minimum size is set to not-null value" . Is there some reason why SUN's alternate Moo-Tiff toolkit does not replicate this behavour? Its only 8 years, and still no fix.
Submitted On 28-APR-2008
thetan
There are were several suggestions and all of them has side effects which are critical for developers.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|