Skip to content

Instantly share code, notes, and snippets.

@chen-fishbein
Last active July 8, 2020 09:57
Show Gist options
  • Save chen-fishbein/4104e30e24925e4be702da66236ffbe9 to your computer and use it in GitHub Desktop.
Save chen-fishbein/4104e30e24925e4be702da66236ffbe9 to your computer and use it in GitHub Desktop.
Accordion usage
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