panel.setButtonAlign(HorizontalAlignment.RIGHT);
panel.setLayout(new FlowLayout());
// main container:
LayoutContainer main = new LayoutContainer();
RowLayout rowLayout = new RowLayout();
main.setLayout(rowLayout);
main.add(createAccountChoice());
main.add(createTreePanel());
panel.add(main);
// Checkboxes for public/editable:
final LayoutContainer rights = new LayoutContainer();
RowLayout rLayout = new RowLayout();
rights.setLayout(rLayout);
makePublicView = new CheckBox();
makePublicView.setBoxLabel(constants.visibleForAllViewers());