-
-
Save codenameone/2b48d1650d8c5032d094066c79922cf1 to your computer and use it in GitHub Desktop.
Accordion 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 f = new Form("Accordion", new BorderLayout()); | |
Accordion accr = new Accordion(); | |
accr.addContent("Item1", new SpanLabel("The quick brown fox jumps over the lazy dog\n" | |
+ "The quick brown fox jumps over the lazy dog")); | |
accr.addContent("Item2", new SpanLabel("The quick brown fox jumps over the lazy dog\n" | |
+ "The quick brown fox jumps over the lazy dog\n " | |
+ "The quick brown fox jumps over the lazy dog\n " | |
+ "The quick brown fox jumps over the lazy dog\n " | |
+ "")); | |
accr.addContent("Item3", BoxLayout.encloseY(new Label("Label"), new TextField(), new Button("Button"), new CheckBox("CheckBox"))); | |
f.add(BorderLayout.CENTER, accr); | |
f.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample usage of the Accordion component.
From the Codename One project