What I want to do is ensure that a window is resizable by the user but if the size drops below a specified amount the the component stop resizing to fit the smaller window; for example, if I set my minimum window size as 1024 x 768 the components will never be squeezed into a window smaller than this but rather scrollbars will appear and the user will have to scroll around the page.

Same question for panels too; I want to be able to create a panel that can be resize (as the window resizes) but I want to ensure the panel does not go below a certain size.