posted 14 years ago
playing around with alignning (bottom's) components with BoxLayout layout i came to the following code (which met my needs)
i created three panels and then tried to bottom align them, succeeding:
as all this worked fine, i decided to further refactor: i commented out the assignment of the return methods, substituting xxxPanel for getxxxPanel():
and suddenly the buttonPanel got an incorrect alignment
what is the reason of this behaviour?
i'm convinced it has nothing to do with swing, but instead is a problem related with some lack of initialization, which i just cant sort it out
can someone please explain it?
thanks in advance