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.
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.