Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created January 31, 2016 06:47
Show Gist options
  • Save codenameone/d09e995c0c378a0c761b to your computer and use it in GitHub Desktop.
Save codenameone/d09e995c0c378a0c761b to your computer and use it in GitHub Desktop.
Sample MigLayout Codename One usage
Form hi = new Form("MigLayout", new MigLayout("fillx,insets 0"));
hi.add(new Label("First")).
add("span 2 2", new Label("Second")). // The component will span 2x2 cells.
add("wrap", new Label("Third")). // Wrap to next row
add(new Label("Forth")).
add("wrap", new Label("Fifth")). // Note that it "jumps over" the occupied cells.
add(new Label("Sixth")).
add(new Label("Seventh"));
hi.show();
@codenameone
Copy link
Author

Sample usage code for MigLayout port to the Codename One project.

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