我无法为中心组件设置滚动。但 NORTH 和 SOUTH 必须固定。
this.setLayout(new BorderLayout());
this.setScrollable(false);
this.addComponent(BorderLayout.NORTH, top);
scrollWrap.setScrollable(true);
this.addComponent(BorderLayout.CENTER, scrollWrap);
this.addComponent(BorderLayout.SOUTH, bottom);
问题是什么?