【发布时间】:2017-10-23 11:21:47
【问题描述】:
在下面的代码中,我根本无法让可滚动容器滚动。我错过了什么?
public void start() {
if(current != null){
current.show();
return;
}
Form f = new Form(new LayeredLayout());
Container cont = new Container(new BoxLayout(BoxLayout.X_AXIS));
cont.setScrollableX(true);
for (int x=0; x<20; x++) {
Label lbl = new Label();
FontImage.setMaterialIcon(lbl, FontImage.MATERIAL_APPS, 20);
cont.add(lbl);
}
f.addAll(new Container(), BorderLayout.south(cont));
f.show();
}
【问题讨论】:
标签: codenameone