Created
January 25, 2016 19:54
-
-
Save codenameone/23e642b1a749e2f37e68 to your computer and use it in GitHub Desktop.
Sample of using the BorderLayout class in Codename One
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("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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage code for https://www.codenameone.com/javadoc/com/codename1/ui/layouts/BorderLayout.html
From the Codename One project