1

我有顶栏、列表和底栏。

this.setLayout(new BorderLayout());
this.addComponent(BorderLayout.NORTH, bottomBar);
this.addComponent(BorderLayout.CENTER, list);
this.addComponent(BorderLayout.SOUTH, bottomBar);

List很长。bottomBar 和 bottomBar 是隐藏的。滚动是在全屏上。如何进行滚动仅适用于BorderLayout.CENTER. bottomBar 和 bottomBar 将可见。

4

1 回答 1

2

禁用Form. 例如这样做,

Form f = new Form();
f.setLayout(new BorderLayout());
f.setScrollable(false);
f.addComponent(BorderLayout.NORTH, new Label("Top bar"));
f.addComponent(BorderLayout.CENTER, list);
f.addComponent(BorderLayout.SOUTH, new Label("Bottom bar"));
f.show();
于 2011-11-28T10:41:08.520 回答