Hi I have a simple panel with text fileds & a button arage in to a row. The button must have a fix size and must be allway on the right side. The text field must be resible and must fill the space between the left border & the right component(the button). I try to use the GridBagLayout but it seamns that the cells have the same size(width & height) and I can not place the button on the right exteme. I try for the text field the const. cst.gridwidth = GridBagConstraints.RELATIVE; (next to end) and for the button cst.fill = GridBagConstraints.NONE; cst.anchor = GridBagConstraints.NORTHWEST ; cst.gridwidth = GridBagConstraints.REMAINDER; (the end) but there is still a lot of space between the button and the right limit.