resizeToFit question

The resizeToFit flag in setContentComponent() is great, but is there a way to do the same thing with child components in general?

For instance, I have a resizeable window, with a content component, which in turn has a single table in it. I’d like that table to resize with the window.

I know it can be done by listening for resize messages, but if components could “stick” to sides of their parent as an option, that would be even better.

Good request. The best way to do it would if you could give a component a PositionedRectangle that it would automatically apply. (Actually, you could probably create a component listener class that would listen for changes in the parent and do just this, and just attach it to your component - that’d be quite a neat little class)