Ok, so I'm starting to poke around in GXT.... I'm using 3.0 developer preview 5.
I'm trying to do some basic stuff with the Window class, and I'm sort of happy with it. But using it with a BorderLayoutContainer is a bit . . odd . .
If I take a Window and add a VerticalLayoutContainer to it, then when I show the Window,it sizes to being large enough to show all of the contents - very similar to what I'd expect from Swing's JFrame.pack() method.
If I take a Window and add a BorderLayoutContainer to it, add Widgets to the north, south, east, west and center, then show, well, the behavior is a bit weird. The window starts fairly small, and shows only the north area - if I drag out the bottom corner with the mouse to expand it, other elements show, but at first overlapping, then gradually spreading out as I widen the window enough to fit everything.
I don't want to explicitly set the size since for what I ultimately intend to do, the size required to show all the contents will vary. However, there doesn't appear to be a method similar to JFrame's "pack()" as far as I can tell.
Is there any way to get the window to auto-size to be large enough to fit all the contents without overlapping or hiding anything? I imagine that there will be other Layout Panel classes for which this occurs.. already my experimentation with HorizontalLayoutPanel is behaving oddly - at least, oddly relative to what I'd assume based on Swing-like behavior.