control.getContentArea().deploy(grid) does not add grid dockables to the control

control.getContentArea().deploy(grid) does not add dockables to the control:

currently, javadoc says that this should be enough:

grid.add(0, 0, 1, 1, red);
control.getContentArea().deploy(grid);

in order to add dockable to the control

in fact this much is needed:

grid.add(0, 0, 1, 1, red);
control.add(red);
control.getContentArea().deploy(grid);

You have to use the correct constructor, “CGrid( CControl )” for this to be enough. Because it is “CGrid” that calls “CControl.add” as soon as its “CGrid.add” method.

got it; thanks!