Skip to content

Instantly share code, notes, and snippets.

@codenameone
Created January 25, 2016 19:54
Show Gist options
  • Save codenameone/23e642b1a749e2f37e68 to your computer and use it in GitHub Desktop.
Save codenameone/23e642b1a749e2f37e68 to your computer and use it in GitHub Desktop.
Sample of using the BorderLayout class in Codename One
Form hi = new Form("Border Layout", new BorderLayout());
hi.add(BorderLayout.CENTER, new Label("Center")).
add(BorderLayout.SOUTH, new Label("South")).
add(BorderLayout.NORTH, new Label("North")).
add(BorderLayout.EAST, new Label("East")).
add(BorderLayout.WEST, new Label("West"));
hi.show();
@codenameone
Copy link
Author

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