Inside our (GXT)HorizontalPanel are two components.
I want to set the width for the first component to 100%. In GWT there is a method like HorizontalPanel#setCellWidth (see Sizing a HorizontalPanel cell). But in GXT there is not method like that.
We use GXT 2.3.1 and I DON'T want to use a GWT HorizontalPanel. It has to be a GXT HorizontalPanel (please don't ask why ;-))
I found a solution for my problem. Here is some code that works for me.
public class HPanel extends HorizontalPanel {
public HPanel(){
Widget widget1 = new Widget();
Widget widget2 = new Widget()
TableData tableData = new TableData();
tableData.setWidth("100%");
setLayoutData(widget1, tableData);
}
}