Expand windows vertically as content is added.
I am using NetBeans to create a JFrame based application (in a window). There are a few JPanel's in there which were created with the visual designer such that when the user resizes the window they will resize with it. One of the JPanels are initially empty because content is dynamically added and removed from it for something. What I would like to happen is that when the panel expands beyond the extent of the window, it should expand the window as well. Currently if the panel gets full and expands it will push the rest of the windows content down but the window itself will not expand.
Is this fixable, or is there something fundamental which is not going to allow me to do this?
I value any input, thank you :-)

