Frank Schönmann: GridBagArray Eigenheiten

Beitrag lesen

hi!

Ich hoffe, ich erreiche hiermit ein paar Java-GUI-designer unter
euch. Ich habe ein kleines Problem mit dem GridBagLayout-Manager.

Aus "Thinking in Java" von Bruce Eckel:

=== cut ===
The GridBagLayout provides you with tremendous control in deciding
exactly how the regions of your window will lay themselves out and
reformat themselves when the window is resized. However, it’s also
the most complicated layout manager, and quite difficult to
understand. It is intended primarily for automatic code generation by
a GUI builder (good GUI builders will use GridBagLayout instead of
absolute placement). If your design is so complicated that you feel
you need to use GridBagLayout, then you should be using a GUI builder
tool to generate that design.
=== cut ===

Mein Tipp: GridBagLayout kicken und alles mit BoxLayout und den
anderen Layout-Managern machen. Damit spart man sich nach meiner
Erfahrung eine Menge Ärger.

bye, Frank!