Component Sizing in BoxLayout

What is the point of the setMinimumSize and setMaximumSize methods for Swing Components? When I use them for a Swing Component in a Box and then call pack, it ignores their values.

Is there some LayoutManager that actually takes these values into account and works in a sensible way?

See:
http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html

There are a new batch of layout managers that are less unwieldy, check out this link:

http://weblogs.java.net/blog/joconner/archive/2006/10/layout_manager_1.html

I was writing code in a hurry right before work, and I forgot to add the glue. Now I just feel dumb for posting a question when I did something like that. :frowning:

Thanks for the links though. The Layout Showdown looks like it contains some useful layouts.