posted 18 years ago
setAlignmentX() does not place the component at left, center or right,
it creates the alignment point
eg if you have a button (L) set to left, and a button (C) set to center, L
will be in the center and C on the left, because the left edge of L will be
aligned to the center of C.
if all your buttons are aligned left, and you want them in the center, put the panel into a holding panel (default flowlayout), and add your boxlayout panel
to the holding panel