wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Which layout manager to learn to use Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Which layout manager to learn to use" Watch "Which layout manager to learn to use" New topic
Author

Which layout manager to learn to use

john merritt
Greenhorn

Joined: Aug 24, 2009
Posts: 14
I am teaching myself java from books and the internet. I found Mig Layout while searching for info on layout managers. Is this the only layout manager I need to learn to use or does it have limitation I am unaware of? Should I learn to use all the available layout managers or will Mig layout cover all eventualities I will ever need?
John Merritt
Kevin Workman
Ranch Hand

Joined: Sep 28, 2010
Posts: 151
john merritt wrote:I am teaching myself java from books and the internet. I found Mig Layout while searching for info on layout managers. Is this the only layout manager I need to learn to use or does it have limitation I am unaware of? Should I learn to use all the available layout managers or will Mig layout cover all eventualities I will ever need?
John Merritt


Best to learn them all- especially the standard ones. I would learn those before delving into Mig Layout. Most non-trivial GUIs will use a combination of nested layouts, and it's important to learn how they all fit together.

Check out A Visual Guide to Layout Managers, which I found as the first result for "java layouts".
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
I'd avoid GridBagLayout. See the SwingFaq for alternatives that are a bit less powerful, but much easier to use: GridLayout2 and SGLayout.

Nested JPanels having BoxLayouts is something I find myself using a lot.
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4490
    
    8

BorderLayout is the one I find myself using the most. It's amazing what you can do with a combination of BorderLayouts and GridLayouts.

john merritt
Greenhorn

Joined: Aug 24, 2009
Posts: 14
Thank for the links
John
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which layout manager to learn to use