cmpStyle = new Composite(grpTicks, SWT.NONE); GridData gdCMPStyle = new GridData(GridData.FILL_BOTH); cmpStyle.setLayoutData(gdCMPStyle); cmpStyle.setLayout(glStyle);
    private void placeComponents()    {        // Layout for entire composite        FillLayout flMain = new FillLayout();        flMain.marginHeight = 1;        flMain.marginWidth = 1;        // Layout for content composite        GridLayout glContent = new GridLayout();        glContent.verticalSpacing = 2;        glContent.marginHeight = 0;        glContent.marginWidth = 0;        glContent.numColumns = 2;        // Layout for Grid Lines group        FillLayout flLines = new FillLayout();        flLines.marginHeight = 1;        flLines.marginWidth = 1;        // Layout for Ticks group        GridLayout glTicks = new GridLayout();        glTicks.marginHeight = 0;        glTicks.marginWidth = 1;        glTicks.verticalSpacing = 2;        // Layout for Tick style composite        GridLayout glStyle = new GridLayout();        glStyle.marginHeight = 0;        glStyle.marginWidth = 4;        glStyle.numColumns = 5;        this.setLayout(flMain);        // Content Composite        cmpContent = new Composite(this, SWT.NONE);        cmpContent.setLayout(glContent);        // Grid Lines group        cmpLines = new Composite(cmpContent, SWT.NONE);        GridData gdCMPLines = new GridData(GridData.FILL_BOTH);        gdCMPLines.horizontalSpan = 2;        cmpLines.setLayoutData(gdCMPLines);        cmpLines.setLayout(flLines);        // Line Attributes for Grid Lines        liacLines = new LineAttributesComposite(cmpLines, SWT.NONE, grid.getLineAttributes(), true, true);        GridData gdLIACLines = new GridData(GridData.FILL_BOTH);        liacLines.setLayoutData(gdLIACLines);        liacLines.addListener(this);        // Ticks group        grpTicks = new Group(cmpContent, SWT.NONE);        GridData gdGRPTicks = new GridData(GridData.FILL_BOTH);        gdGRPTicks.horizontalSpan = 2;        grpTicks.setLayoutData(gdGRPTicks);        grpTicks.setLayout(glTicks);        grpTicks.setText("Ticks");        // Line Attributes for Ticks        liacTicks = new LineAttributesComposite(grpTicks, SWT.NONE, grid.getTickAttributes(), false, false);        GridData gdLIACTicks = new GridData(GridData.FILL_HORIZONTAL);        liacTicks.setLayoutData(gdLIACTicks);        liacTicks.addListener(this);        // Tick Style composite        cmpStyle = new Composite(grpTicks, SWT.NONE);        GridData gdCMPStyle = new GridData(GridData.FILL_BOTH);        cmpStyle.setLayoutData(gdCMPStyle);        cmpStyle.setLayout(glStyle);        // Tick Styles        Label lblStyle = new Label(cmpStyle, SWT.NONE);        GridData gdLBLStyle = new GridData();        gdLBLStyle.widthHint = 44;        lblStyle.setLayoutData(gdLBLStyle);        lblStyle.setText("Style:");        cmbTickStyle = new Combo(cmpStyle, SWT.DROP_DOWN | SWT.READ_ONLY);        GridData gdCMBTickStyle = new GridData(GridData.FILL_HORIZONTAL);        gdCMBTickStyle.horizontalSpan = 4;        cmbTickStyle.setLayoutData(gdCMBTickStyle);        cmbTickStyle.addSelectionListener(this);        populateLists();        setDefaultSelections();    }