View Single Post
  #7 (permalink)  
Old 01-20-2008, 06:28 PM
Mark_Petrov Mark_Petrov is offline
Member
 
Join Date: Jan 2008
Posts: 3
Mark_Petrov is on a distinguished road
instead of:
Quote:
panel.setLayout(new FlowLayout(FlowLayout.CENTER));
try using:

panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));

with PAGE_AXIS, your components can be aligned vertically
Reply With Quote