public void start() {
if(current != null){
current.show();
return;
}
screenOne();
}
private void screenOne() {
Form f = new Form(new BorderLayout());
/*
NOT REGISTERING EVENTS WHEN DIMENSION > DEVICE HEIGHT
*/
Label lbl = new Label() {
@Override
public void pointerReleased(int x, int y) {
super.pointerReleased(x, y);
Dialog.show("Event", "Touched", "Ok", "Cancel");
}
@Override
protected Dimension calcPreferredSize() {
return new Dimension(getDisplayWidth(), getDisplayHeight() + 120);
}
};
Container contY = new Container(new BoxLayout(BoxLayout.Y_AXIS));
contY.setScrollableY(true);
contY.setScrollVisible(false);
contY.add(lbl);
f.add(BorderLayout.CENTER, contY);
f.show();
}