Paints flat borders for widgets created by this toolkit within the provided parent. Borders will not be painted if the global border style is SWT.BORDER (i.e. if native borders are used). Call this method during creation of a form composite to get the borders of its children painted. Care should be taken when selection layout margins. At least one pixel margin width and height must be chosen to allow the toolkit to paint the border on the parent around the widgets.
Borders are painted for some controls that are selected by the toolkit by default. If a control needs a border but is not on its list, it is possible to force borders in the following ways:
widget.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TREE_BORDER); or widget.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
If borders would normally be painted for a control, but they are not wanted, it is possible to suppress them in the following way:
widget.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
@param parent the parent that owns the children for which the border needs to be painted.