我用gwt-ext 在panel中加入了三个radio button,前两个button后边分别对应一个textarea,第三个后边没有,我的代码如下:
Panel myPanel = new Panel();
 myPanel.setLayout(new FitLayout());
 myPanel.setBorder(false);
 myPanel.setPaddings(5);
 
 FieldSet detailsFS = new FieldSet("Radio Test");
 detailsFS.setCollapsible(false);
 detailsFS.setHeight(500);
 
 Radio radio1 = new Radio("Radio 1", "Radio");
 radio1.setHeight(45);
 Radio radio2 = new Radio("Radio 2", "Radio");
 radio2.setHeight(45);
 Radio radio3 = new Radio("Radio 3", "Radio");
 radio3.setHeight(45);
 
 TextArea textArea1 = new TextArea();
 textArea1.setHeight(40);
 TextArea textArea2 = new TextArea();
 textArea2.setHeight(40);
 
 FieldSet first=new FieldSet();
 first.setBorder(false);
 first.setHeight(400);
 first.add(radio1,new AnchorLayoutData("99%"));
 first.add(radio2,new AnchorLayoutData("99%"));
 first.add(radio3,new AnchorLayoutData("99%"));
 
 FieldSet second=new FieldSet();
 second.setBorder(false);
 second.add(textArea1,new AnchorLayoutData("99%"));
 second.add(textArea2,new AnchorLayoutData("99%"));
 
 Panel tempPanel=new Panel();
 tempPanel.setLayout(new ColumnLayout());
 tempPanel.add(first,new ColumnLayoutData(.3));
 tempPanel.add(second,new ColumnLayoutData(.7));
detailsFS.add(tempPanel,new AnchorLayoutData("100%"));
 
 myPanel.add(detailsFS);
 return myPanel;
问题是,显示的时候前边总是空出一大块地方,不能紧靠左边开头,截图如下:

我也试过把indicatorPanel用RowLayout(),再加三个加三个FieldSet,每个用 ColumnLayout() 布局,但是效果还不如这个,请问各位指教一下我是有什么没有考虑到的吗,或者有别的更好的方法,万分感谢!!!
建议你安装google的可视化设计工具调布局
https://developers.google.com/web-toolkit/tools/download-gwtdesigner?hl=zh-CN