Skip to content

Instantly share code, notes, and snippets.

View chen-fishbein's full-sized avatar

Chen Fishbein chen-fishbein

View GitHub Profile
@chen-fishbein
chen-fishbein / Accordion.java
Last active July 8, 2020 09:57
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 "
+ ""));
@chen-fishbein
chen-fishbein / Progress.java
Last active September 12, 2016 19:51
CodenameOne Circle Progress Demo
Form hi = new Form("Circle Progress");
hi.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
final CircleProgress p = new CircleProgress();
p.setProgress(100);
p.setClockwise(true);
p.setStartAngle(CircleProgress.START_9_OCLOCK);
hi.add(p);
final ArcProgress p2 = new ArcProgress();
p2.setProgress(70);