a continuous layout?
Is it possible to set a continuous layout for a jframe? I thought there was, but I'm not finding anything in the docs. JSplitPane allows it, but that's all I've found.
[182 byte] By [
Phaelax] at [2007-11-11 6:49:03]

# 2 Re: a continuous layout?
when resizing a window, the contents resize to match continuously.
# 3 Re: a continuous layout?
GridLayout & BorderLayout does that. The gridlayout gives each component the same space, for BorderLayout the resizing "favours" the component in the center and
the four others components are treated according to their preferredSize settings.
GridBagLayout also gives you resizing, with a some nitty gritty constraints coding.
sjalle at 2007-11-11 22:42:19 >

# 4 Re: a continuous layout?
I think maybe you're still misunderstanding, here's a picture.
example here (http://img.photobucket.com/albums/v204/phaelax/resize.jpg)
When resizing, the frame will match its size with how you draw the mouse, but the contents of that frame will not adjust until you release the mouse button from resizing it.
# 5 Re: a continuous layout?
Ok, that requires one of two things...
1: a listener interface for the frame that is called continously during frame resizing
so that you can invoke a validate/repaint for the frame, providing that the frame will
accept that during resize.
2: a frame setting that will do that for free
I have failed in finding anything like this :confused:
sjalle at 2007-11-11 22:44:17 >

# 6 Re: a continuous layout?
guess i'll just have to use the listener, thanks for trying though.