i have used border layout quite often it is pretty easy. i haven't used gridbag layout. all i remember is it is harder to use. i agree the tutorial is the place to start.
Shubham Chhabra wrote:I need help on java swing layouts.............
Please help asap.
Matthew has suggested a good article about Swing layout. For me, I often use FlowLayout, BorderLayout and GridBagLayout. The last one is very flexible layout manager if you are building a complex GUI, and usually we have to combine some layouts together.
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
> I need help on java swing layouts.............
> Please help asap.
Congratulations, you are the 999,999th person to post a lame question.
You can accomplish a lot by nesting simple layouts (BorderLayout and GridLayout) within each other.
Also, it might just be me, but I find that GridBagLayout is very similar to laying out components on a web page using an HTML table.
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." - George Bernard Shaw