Created
January 31, 2016 06:47
-
-
Save codenameone/d09e995c0c378a0c761b to your computer and use it in GitHub Desktop.
Sample MigLayout Codename One usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage code for MigLayout port to the Codename One project.