Autoresize frame after user action?

Hi,

When the user tries to enlarge or to reduce the main frame I would like that my main frame was able to calcul the new dimension and each component was able to reduce or increase its own dimension.

I would like to know if exists some method for autoresizing the frame in this case.

Thanks.

[318 byte] By [JAX82a] at [2007-11-27 6:34:52]
# 1
Use a layout manager. Layout manager will take care of components placement after resizing the window.
AnanSmritia at 2007-7-12 18:01:31 > top of Java-index,Desktop,Core GUI APIs...
# 2
[url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers[/url]
camickra at 2007-7-12 18:01:31 > top of Java-index,Desktop,Core GUI APIs...