Hi,
Thanks a LOT for your help. However , it is not working.. I don't quite understand. So this is what I have done...
I have a JFrame, to which is added a JPanel(tsPanel). The Grid Layout of tsPanel is set, and I add some components to it. After each component, I add
gbc.weightx=1.0;
gbc.weighty=1.0;
gbc.gridy++;
JLabel
test = new JLabel(" ");
gbl.setConstraints(test, gbc);
tsPanel.add(test,gbc);
So next, I open my frame, and I resize it to occupy the full screen(I am not yet using the
Java APIs to set full screen mode). I find that my components have gone awry, that is the size and orientation that I had in my un-resized window is not maintained.
Any pointers? Would be much appreciated. Thanks