File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 46410
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
It's not a secret anymore!