for (String cur : strings) {
String displayString = cur;
LabelWidget lw = new LabelWidget(s);
labelWidgets.add(lw);
middleWidget.addChild(lw);
lw.setLabel(displayString);
lw.setFont(font);
lw.setForeground(Color.BLACK);
lw.setAlignment(LabelWidget.Alignment.CENTER);
lw.setVerticalAlignment(LabelWidget.VerticalAlignment.CENTER);
lw.setMaximumSize(new Dimension(f.getWidth(), 20000));
lw.setMinimumSize(new Dimension(f.getWidth(), 20));
}
rightWidget = new Widget(s);
this.addChild(rightWidget);
rightWidget.setLayout(new SlotLayout(SlotLayout.HorizontalAlignment.Left, VERTICAL_LAYOUT));//LayoutFactory.createVerticalLayout(LayoutFactory.SerialAlignment.JUSTIFY, 0));