I have a serious problem with GridBagLayout please help

I have an working code of an Swing application that has used gridbaglayout it works very well in desktop pc on 2000/xp with 800 x 600 screen resolution but the problem is when i change the screen resolution to higher say at 1152 x 864 resolution then the same code all the components are left align and not properly distributed even though i have GridbagConstraints.BOTH for the fill variable of the Gridbaglayout. Also i am facing similar problem when i run the code on the laptop.

Please help me and can anyone tell me what to do in case i want the layout to show in the same manner for higher resolution as it is showing for lower resolution.

[658 byte] By [csnaveen31a] at [2007-10-3 3:48:24]
# 1
Could you show an example of the code that's giving you trouble?
TheAndruua at 2007-7-14 21:45:25 > top of Java-index,Desktop,Core GUI APIs...
# 2
you may have to setPreferredSize to a calulation from the screen resolution, if there is 1 thing that is 1 pixel too big for it, i find it stuffs the entire containerDrogo
Drogo_Nevetsa at 2007-7-14 21:45:25 > top of Java-index,Desktop,Core GUI APIs...
# 3
Check to see that your grid bag constraints variable has its weightx and weighty values set to be greater than 0.
TheAndruua at 2007-7-14 21:45:25 > top of Java-index,Desktop,Core GUI APIs...