public void start() {
if(current != null){
current.show();
return;
}
Form f = new Form(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_CENTER_ABSOLUTE));
Tabs t = new Tabs();
for (int x = 0; x < 3; x++) {
Container cont = new Container(new BoxLayout(BoxLayout.Y_AXIS));
cont.setScrollableY(true);
for (int i = 0; i< 3; i++) {
Label l = new Label() {
@Override
protected Dimension calcPreferredSize() {
return new Dimension(Display.getInstance().getDisplayWidth(), Display.getInstance().getDisplayHeight());
}
};
FontImage.setMaterialIcon(l, FontImage.MATERIAL_ADD_A_PHOTO, 20);
cont.add(l);
}
t.addTab("", cont);
}
f.addComponent(BorderLayout.CENTER, t);
f.show();
}