boolean bEnableUI = cbVisible.getSelection(); grpOutline.setEnabled(bEnableUI); cbVisible.setEnabled(bEnableUI); lblPosition.setEnabled(bEnableUI); lblFill.setEnabled(bEnableUI); lblShadow.setEnabled(bEnableUI); lblFont.setEnabled(bEnableUI); cmbPosition.setEnabled(bEnableUI); fdcFont.setEnabled(bEnableUI); fccBackground.setEnabled(bEnableUI); fccShadow.setEnabled(bEnableUI); icInsets.setEnabled(bEnableUI); liacOutline.setEnabled(bEnableUI);
    public void widgetSelected(SelectionEvent e)    {        Event eLabel = new Event();        eLabel.widget = this;        if (e.getSource().equals(cmbPosition))        {            eLabel.data = Position.get(cmbPosition.getText());            eLabel.type = POSITION_CHANGED_EVENT;        }        else if (e.getSource().equals(cbVisible))        {            eLabel.data = new Boolean(cbVisible.getSelection());            eLabel.type = VISIBILITY_CHANGED_EVENT;        }        fireEvent(eLabel);    }