Window sizing

i realize it’s not too hard to do by hand, but it would be nice if there was a way to set the size of a dialog or resizable window based on the internal dimensions. so if i wanted a 640x480 region, i could ask directly for 640x480 instead of having to do the math for the border widths and title bar height. like i said, it’s not hard to do by hand, but i think it would be usefull as a standard method…

alternatively, perhaps a “fit container component” type feature would work as well, since the container component should have a size defined.


It’s already got this - if you set the ‘resizeToFit’ flag when you call setContentComponent(), then resizing the content component will resize the window around it.

see, i knew it was a good idea. :slight_smile: