Link to home
Start Free TrialLog in
Avatar of yrrm
yrrm

asked on

AWT

In AWT Frame when we set the layout as FlowLayout Manager
how can we arrange different panels at the desired position inside the frame instead of each panel adding besides the other panel implicitly.

When I used the setBounds() method on the panel, the panel is not positioned according to the given values
but it is just getting added beside an exisitng panel.
Avatar of mzimmer74
mzimmer74

Well, that's the way FlowLayout works.  If you want to position panels you'll need to use a different layout.  Depending on how detailed you want to be I'd suggest GridLayout, BorderLayout, or GridBagLayout going from least to most detailed.
ASKER CERTIFIED SOLUTION
Avatar of cini_gm
cini_gm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial