File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Want to know about border Layout and gridbag layout

 
Shubham Chhabra
Greenhorn
Posts: 9
  • 0
  • 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: 4549
8
Java Netbeans IDE Scala
  • 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: 4353
2
Java
  • 0
  • 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: 20388
46
Chrome Eclipse IDE Java Windows
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic