This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Layouts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Layouts" Watch "Layouts" New topic


Radoslaw Sztando
Ranch Hand

Joined: Mar 11, 2004
Posts: 40

do you know some links to extensive swing layouts description?
I need general description, pros/cons and possible examples.

Thanks in advance,

Radek Sztando
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38519
I am not sure I am telling you anything new.

I presume you have been through the Java tutorial about layout managers? In fact anybody ought to try the Java tutorial first for most questions.

Cay Horstmann (cf Horstmann C, Cornell G, Core Java 2, vol I-Fundamentals, Santa Clara: Sun Microsystems Press, 2004, pages 430-440) and this website) has his own ideas about GridBagLayout, and has a "helper" class which you can download from the website cited. I agree with him that it makes GridBagLayout much much easier to use.

BTW: If you really are a "greenhorn," borrow the book from the library rather than buying it. It is not suitable for beginners.
I agree. Here's the link:
subject: Layouts