Last active
July 8, 2020 09:57
-
-
Save chen-fishbein/4104e30e24925e4be702da66236ffbe9 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 BoxLayout(BoxLayout.Y_AXIS)); | |
f.setScrollableY(true); | |
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(accr); | |
f.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment