• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which layout manager to learn to use

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 151
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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".
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank for the links
John
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic