GWT 页面中如何给他可以显示滚动条,可以自适应页面
下面代码里面怎么实现这个页面可以有滚动条,然后自适应窗口大小protected MyFormPanel(FormSubmitListener<InRoomCategory> l) {
super(l);
setHeaderVisible(false);
setAction("upload/category.do");
setEncoding(Encoding.MULTIPART);
setMethod(Method.POST);
setScrollMode(Scroll.ALWAYS);
content = new Hidden();
content.setName(ShareGWTConstants.SERIALIZED_DOMAIN);
content.setVisible(false);
add(content);
// setLabelWidth(120);
FormData formData = new FormData("90%");
LayoutContainer lcAll = new LayoutContainer();
lcAll.setLayout(new ColumnLayout());
lcAll.setBorders(true);
LayoutContainer left = new LayoutContainer();
left.setId("CategoryDialog_left1");
FormLayout layout = new FormLayout();
layout.setLabelAlign(LabelAlign.LEFT);
layout.setLabelWidth(120);
layout.setDefaultWidth(160);
left.setLayout(layout);
补充:Java , Web 开发