JFrame - how to auto resize widgets when window is resized?

I'm just experimenting with the GUI editor in NetBeans; really it's a fast to familiarise myself with the various Swing components, how they look and what they do. I have some experience of Qt, which uses spacers to ensure this happens. They also prevent the window from being resized to a size of 0:0.

When I resize my JFrame, the widgets disappear - what do I need to do to stop the widgets from disappearing and to ensure they are automatically resized to fit inside a window that is being resized? One trick I found was to set a minimum size for the window, but this doesn't resize the widgets.

Thanks

[627 byte] By [BobCrivensa] at [2007-11-27 5:38:11]
# 1
[url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers[/url].Each layout manager has its own set of rules on how to handle resizing of the container.
camickra at 2007-7-12 15:11:23 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks! I was using the absolute layout manager, can't remember it's name, so I was specifying the position absolutely. I hadn't tried the other managers, so I assumed they were the same. Oops!
BobCrivensa at 2007-7-12 15:11:23 > top of Java-index,Desktop,Core GUI APIs...