Java Code Examples for org.eclipse.swt.widgets.Group#setForeground()

The following examples show how to use org.eclipse.swt.widgets.Group#setForeground() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FormWidgetFactory.java    From birt with Eclipse Public License 1.0 3 votes vote down vote up
/**
 * Creates a group as a part of the form.
 * 
 * @param parent
 *            the group parent.
 * @param text
 *            the group title.
 * @return the composite.
 */
public Group createGroup( Composite parent, String text )
{
	Group group = new Group( parent, SWT.SHADOW_NONE );
	group.setText( text );
	group.setBackground( getColors( ).getBackground( ) );
	group.setForeground( getColors( ).getForeground( ) );
	return group;
}
 
Example 2
Source File: TabbedPropertySheetWidgetFactory.java    From bonita-studio with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Creates a group as a part of the form.
 *
 * @param parent
 *            the group parent.
 * @param text
 *            the group title.
 * @return the composite.
 */
public Group createGroup(Composite parent, String text) {
    Group group = new Group(parent, SWT.SHADOW_NONE);
    group.setText(text);
    group.setBackground(getColors().getBackground());
    group.setForeground(getColors().getForeground());
    return group;
}