How make sure that a Composite also lays out its children after calling Composite.layout() in Java -


i'm having composite children, possibly composites can other controls. example this

composite composite = new composite(parent, swt.none); composite childrencomposite = new composite(composite, swt.none); control childrenchildrencontrol = new control(childrencomposite, swt.none); control childrencontrol = new control(composite, swt.none); 

and if call composite.layout() want childrencomposite calls layout-method. done automatically? or have call separately?

composite.layout(); 

i found out following. if u want make sure childrens of composite layouted use

composite composite = new composite(parent, swt.none); composite childrencomposite = new composite(composite, swt.none); control childrenchildrencontrol = new control(childrencomposite, swt.none); control childrencontrol = new control(composite, swt.none);  composite.layout(true, true); 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -