> Does any know any new free implementation of the GridBagLayout. I
> think the current implementation of Sun is very bad.
[quoted text clipped - 14 lines]
>
> Can any give me a link to another implementation?
http://mindprod.com/jgloss/layout.html
See also a few posts below - there are just the same question

Signature
Andrey Kuznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities
> Hi,
>
[quoted text clipped - 7 lines]
> different with PreferredSize and MinimumSize there is a jump. In the
> most case one or more components is larger as it PreferredSize.
I agree completely. GBL is great above preferred size, but the
behavior below preferred size is not usually what you want.
This could be corrected by ignoring weightx and weighty between
the minimum and preferred sizes, and just giving each component
a size in each direction of : component_min_size +
C * (component_pref_size - component_min_size) , where C is
computed in the obvious way as a floating point number. The
roundoff error in converting this to integer sizes would need to be
handled in such a way that no minimum size or preferred size is
violated.
> * Another large problem if the size is to small for MinimumSize. Then
> the first Components are set to a size of 0. Other components are
> zoomed.
What happens with the current (1.5) implementation is that it
computes "negative" available space, so the components with
the largest weight get the most extra "negative" size - they get
reduced the most, which is the opposite of what you would
normally want.
This could be handled as above, size = C * component_min_size .
> * The third problem with the Sun implementation is that the behaviour
> is different between different Java version.
>
> Can any give me a link to another implementation? Thanks for your
> help.
You could make one - it isn't that difficult.