S
Sam Takoy
Hi,
I'm writing a custom layout manager and here's what I don't understand.
My experience tells that, generally speaking, there are two modes of
layout. One, when the layout happens for the first time and all elements
assume the size that they would most like.
In the second mode, when the user resizes the JFrame, all elements
inside just need to deal.
So, in layoutContainer(Container parent), how do I know what mode it is?
I guess the difference b/w the two modes is that in the former, I tell
the parent what size to become. In the latter, the parent tells its
children what size it wants to be.
So how do I tell?
Many thanks in advance,
Sam
I'm writing a custom layout manager and here's what I don't understand.
My experience tells that, generally speaking, there are two modes of
layout. One, when the layout happens for the first time and all elements
assume the size that they would most like.
In the second mode, when the user resizes the JFrame, all elements
inside just need to deal.
So, in layoutContainer(Container parent), how do I know what mode it is?
I guess the difference b/w the two modes is that in the former, I tell
the parent what size to become. In the latter, the parent tells its
children what size it wants to be.
So how do I tell?
Many thanks in advance,
Sam