Flowlayout.center with vertical alignment
843807Jul 12 2010 — edited Jul 12 2010I have:
jPanel1.setLayout(new FlowLayout(FlowLayout.CENTER, 10, 10));
jPanel1.add(jPanel2);
jPanel1.add(jPanel3);
The height of jPanel2 and jPanel3 are different. Horizontally, it looks fine. Vertically, by default it aligns center as well, how can it change the vertical alignment to top and keep the Horizontal alignment as center?