springlayout


Looking for an alternative to a null layout on Swing containers, I found SpringLayout. It allows fixed-size locations as well as hybrids (locations that are fixed, but relative to other components within the container), and it was introduced in JDK 1.4. This article from O'Reilly Network describes how to use it. It's definitely more difficult to use than, say, BoxLayout, but it's easier than the black-magic required for GridBagLayouts. It is designed to be used within GUI Builders, but it is certainly useful for "hand-coding" as well, in particular cases in UIs when complete layout control is required.

Categories: technology
Posted by diego on February 25 2003 at 3:05 PM
Comments (please see the comments & trackback policy).

Si te parecio util el SpringLayout, te recomendaria que veas el RelativeLayout: mucho mas facil que el SpringLayout y muuuy flexible ;)

http://www.onjava.com/pub/a/onjava/2002/09/18/relativelayout.html

Posted by: Fernando at February 25, 2003 6:57 PM

Copyright © Diego Doval 2002-2007.
Powered by
Movable Type 3.35