Use the appropriate layout managers and you probably
would _not_ have noticed..
This is often a good solution, but in a complicated GUI, where place
is scarce, the null LayoutManager and setBounds combination might be
easier, though more riscy, I agree, to construct than a complicated
GridBag. However, I am surprised that the anchor points of certain
elements have been changed, IMHO it is close to a bug, the setBounds
_is_not_ an illegal operation.
What do you plan to do for the 1.4.3, 1.4.4, 1.5....?
(whatever..)
Yes, that's why I posted my original question, I _know_ that my
workaround is very bad.
Use the most appropriate layout managers provided,
(or, in rare instances, write your own) and let your
UI lay itself out.
There are better things to be doing than counting pixels.
The human eye has some hard-wired functions for registering vertical
and horizontal lines, groups of items .... A GUI is more intuitive,
more easy to read and understand, if it complies with these features.
There might be cases, where a misfortunate positionning of a control
can make the GUI harder to use. On the other hand, an agreeable
aesthetic feeling of using a nice GUI can help in stress situations.
We are, after all, creating tools for people who use them every day,
in this respect they are not different from other objects of everyday
use (cups, knives, chairs, cars, the pants you wear ...).
Cyril Mrazek, Switzerland