Suryakumar,
yes. GridLayout is the meanest one from the component's preferred size point of view.
In the sense it bothers neither preferred width/preferred height of the container's components. At the same time we can say it is a PERFECT MODERATOR
by equally dividing the whole available container area and treating all the components SAME.
Also note that
according to the frame size has to be sightly changed. If the Frame's layout is set to GridLayout type then the Frame's size is equally divided. If it is set to a Panel then the Panel's whole area is equally divided. So we should say GridLayout arranges all the components (gives each comp same size) accoding to the
container's size the GridLayout is set as LayoutManager.
Frame is also a container.
regds
maha anna
[This message has been edited by maha anna (edited May 17, 2000).]