Hi,
I have a problem with adding two components to setBottomComponent


I have the code:
Code:
   @Override
    public void onModuleLoad() {        
        TextField componentOne = new TextField();
        TextField componentTwo = new TextField();
        FormPanel c = new FormPanel();
        c.setHeaderVisible(false);
        c.setPadding(5);
        c.setLayout(new BorderLayout());
        c.add(componentOne, new BorderLayoutData(Style.LayoutRegion.CENTER));
        c.add(componentTwo, new BorderLayoutData(Style.LayoutRegion.EAST, 100));
        
     
        FormPanel x = new FormPanel();
        x.setHeaderVisible(false);
        x.setLayout(new FormLayout());
        x.add(c, new FormData("100%"));
        
        Window w = new Window();
        w.setBottomComponent(x);
        w.setSize(800, 600);
        w.show();
How do I stop components named "ComponentOne", "ComponentTwo" was displayed correctly?


So that when you resize the window "ComponentOne" change in size. In contrast, "ComponentTwo" be in its original size your

My EXT-GWT is 2.2.5