Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created January 27, 2016 13:45
Show Gist options
  • Save codenameone/99f5e43061b4c6413d16 to your computer and use it in GitHub Desktop.
Save codenameone/99f5e43061b4c6413d16 to your computer and use it in GitHub Desktop.
Simple usage of the box layout Y API of Codename One
Form hi = new Form("Box Y Layout", new BoxLayout(BoxLayout.Y_AXIS));
hi.add(new Label("First")).
add(new Label("Second")).
add(new Label("Third")).
add(new Label("Fourth")).
add(new Label("Fifth"));
@codenameone
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment