Re: Screen Resolution



Abdelali Adil wrote:

[...]
Gridbag LM isn't only one of the most powerfull LM but also one of most complex LM and you will need much more time as if you use GUI builder with null Layout.

Although GridBagLayout is complex, it is one of
the weaker Java layout managers.

Since this has been mentioned in this thread:
I've found in layout courses that most developers
end up with better design if they use a flat
grid-based layout and avoid nesting.
There are design-cases where nesting makes sense;
as a general guideline it should be avoided in
Swing, because otherwise you loose layout constraints
required for aligning (sub-)elements. Swing LMs
do not provide inter-panel layout constraints.

I've also found in the layout courses that many
developers face problems with building a mental
layout when reading layout code that mixes the
design specification with the panel building.
That's the case for GridBagLayout and how
MIGLayout is advertised. If you have 50 components,
even the last constraint can change the number
of columns.
In contrast TableLayout has invented a style where
the developer can understand the layout specification
by reading a few lines of code. That's the fixed part.
The longer panel building part does not affect
the overall design (columns, often rows).

I provide a free and open layout system that aims
to address the needs of developers as well as the
requirements for useable visual tools, the JGoodies
Forms. It has been designed to make it easier to
find a layout (it's grid based), and to implement
with hand or tool. The JGoodies FormLayout has visual
plugins for Eclipse, Netbeans and is integrated with
IDEA.

Here's more information:
http://www.jgoodies.com/freeware/forms/index.html

-Karsten Lentzsch
.


Quantcast