Thread
:
what layout to use for vertical alignment?
View Single Post
#
7
(
permalink
)
01-20-2008, 06:28 PM
Mark_Petrov
Member
Join Date: Jan 2008
Posts: 3
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
Mark_Petrov
View Public Profile
Send a private message to Mark_Petrov
Find all posts by Mark_Petrov