So far at least, this isn't possible.
This is one case (the other one is automatically sizing popup boxes) where it would be 
good to have a widget able to suggest an optimal size for itself. The main reason this 
could be tricky is that the layout engine has no distinction between the space the 
widget wants to occupy and the space available to the widget.

On Sat, 26 May 2001, Shane Nay wrote:

> 
> First status:
> > http://www.minirl.com/pgui-libgcj.html
> Added a new screenshot..., panels within panels in Frames.  Also labels and 
> buttons.  BorderLayout is working flawlessly.  Also FlowLayout is working 
> with Right and Left alignment, which leads me to my question...
> 
> How would I create some widgets and put them in the center of a widget box 
> without them stretching to fill the container?  (Is it possible?)
> Like this:
> 
> 00000XXX00000
> 
> Where the Xs are Some Widget, and the 0's are empty space.  (Or space which 
> appears to be empty)
> 
> I guess I'll do GridLayout next, then MenuBars.  Probably Text stuff after 
> that..., oh what fun ;-).
> 
> Thanks,
> Shane Nay.
> 
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/pgui-devel

--
To the systems programmer, users and applications server only to provide a 
test load.


_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to