pane = new FreeformLayer();
pane.setLayoutManager(new FreeformLayout());
setLayoutManager(new StackLayout());
add(scrollpane);
IFigure panel = new Layer();
FlowLayout flowLayout = new FlowLayout();
flowLayout.setMajorAlignment(FlowLayout.ALIGN_CENTER);
panel.setLayoutManager(flowLayout);
panel.add(label);
add(panel);
scrollpane.setViewport(new FreeformViewport());
scrollpane.setContents(pane);