• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Want to know about border Layout and gridbag layout

 
Shubham Chhabra
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need help on java swing layouts.............

Please help asap.
 
Matthew Brown
Bartender
Posts: 4565
8
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Oracle Java tutorials are a good place to start - try http://docs.oracle.com/javase/tutorial/uiswing/layout/index.html

 
Randall Twede
Ranch Hand
Posts: 4363
2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20494
54
Chrome Eclipse IDE Java Windows
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shubham Chhabra wrote:Please help asap.

Please EaseUp.
 
Haina Minawa
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> I need help on java swing layouts.............
> Please help asap.

Congratulations, you are the 999,999th person to post a lame question.

You have won a free laptop.
 
Riaan Nel
Ranch Hand
Posts: 160
IntelliJ IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic