99100101102103104105106107108
*/ MenuItem item = menu.get("Use Branch Lengths"); if (item != null) { System.out.println("GOT IT"); CheckBox cb = (CheckBox) item; cb.setAction(this,"layout"); } } }
104105106107108109110111112113
* Set a callback for the "use branch lengths" property. */ MenuItem item = menu.get("Use Branch Lengths"); if (item != null) { System.out.println("GOT IT"); CheckBox cb = (CheckBox) item; cb.setAction(this, "layout"); } } }
33343536373839404142434445
public void setup() { super.setup(); Toolbar t = new Toolbar(this); t.setOrientation(Toolbar.VERTICAL); CheckBox b = new CheckBox(); b.setName("Hello"); b.setProperty(this, "isEnabled"); t.add(b); NumberScroller s = new NumberScroller(); s.setName("ScrollMe"); s.setDefault(50); t.add(s);