textToolBar.setBackground (backgroundColor); textToolBar.setForeground (foregroundColor); textToolBar.setFont (font);
	void createExampleWidgets () {			/* Compute the widget style */		int style = SWT.NONE;		if (flatButton.getSelection()) style |= SWT.FLAT;		if (wrapButton.getSelection()) style |= SWT.WRAP;		if (borderButton.getSelection()) style |= SWT.BORDER;			/*		* Create the example widgets.		*		* A tool bar must consist of all image tool		* items or all text tool items but not both.		*/			/* Create the image tool bar */		imageToolBar = new ToolBar (imageToolBarGroup, style);		ToolItem item = new ToolItem (imageToolBar, SWT.PUSH);		item.setImage (instance.images[ControlExample.ciClosedFolder]);		item.setToolTipText("SWT.PUSH");		item = new ToolItem (imageToolBar, SWT.PUSH);		item.setImage (instance.images[ControlExample.ciClosedFolder]);		item.setToolTipText ("SWT.PUSH");		item = new ToolItem (imageToolBar, SWT.RADIO);		item.setImage (instance.images[ControlExample.ciOpenFolder]);		item.setToolTipText ("SWT.RADIO");		item = new ToolItem (imageToolBar, SWT.RADIO);		item.setImage (instance.images[ControlExample.ciOpenFolder]);		item.setToolTipText ("SWT.RADIO");		item = new ToolItem (imageToolBar, SWT.CHECK);		item.setImage (instance.images[ControlExample.ciTarget]);		item.setToolTipText ("SWT.CHECK");		item = new ToolItem (imageToolBar, SWT.RADIO);		item.setImage (instance.images[ControlExample.ciClosedFolder]);		item.setToolTipText ("SWT.RADIO");		item = new ToolItem (imageToolBar, SWT.RADIO);		item.setImage (instance.images[ControlExample.ciClosedFolder]);		item.setToolTipText ("SWT.RADIO");		item = new ToolItem (imageToolBar, SWT.SEPARATOR);		item.setToolTipText("SWT.SEPARATOR");		item = new ToolItem (imageToolBar, SWT.DROP_DOWN);		item.setImage (instance.images[ControlExample.ciTarget]);		item.setToolTipText ("SWT.DROP_DOWN");		item.addSelectionListener(new DropDownSelectionListener());			/* Create the text tool bar */		textToolBar = new ToolBar (textToolBarGroup, style);		textToolBar.setBackground (backgroundColor);		textToolBar.setForeground (foregroundColor);		textToolBar.setFont (font);		item = new ToolItem (textToolBar, SWT.PUSH);		item.setText (ControlExample.getResourceString("Push"));		item.setToolTipText("SWT.PUSH");		item = new ToolItem (textToolBar, SWT.PUSH);		item.setText (ControlExample.getResourceString("Push"));		item.setToolTipText("SWT.PUSH");		item = new ToolItem (textToolBar, SWT.RADIO);		item.setText (ControlExample.getResourceString("Radio"));		item.setToolTipText("SWT.RADIO");		item = new ToolItem (textToolBar, SWT.RADIO);		item.setText (ControlExample.getResourceString("Radio"));		item.setToolTipText("SWT.RADIO");		item = new ToolItem (textToolBar, SWT.CHECK);		item.setText (ControlExample.getResourceString("Check"));		item.setToolTipText("SWT.CHECK");		item = new ToolItem (textToolBar, SWT.RADIO);		item.setText (ControlExample.getResourceString("Radio"));		item.setToolTipText("SWT.RADIO");		item = new ToolItem (textToolBar, SWT.RADIO);		item.setText (ControlExample.getResourceString("Radio"));		item.setToolTipText("SWT.RADIO");		item = new ToolItem (textToolBar, SWT.SEPARATOR);		item.setToolTipText("SWT.SEPARATOR");		item = new ToolItem (textToolBar, SWT.DROP_DOWN);		item.setText (ControlExample.getResourceString("Drop_Down"));		item.setToolTipText("SWT.DROP_DOWN");		item.addSelectionListener(new DropDownSelectionListener());			/*		* Do not add the selection event for this drop down		* tool item.  Without hooking the event, the drop down		* widget does nothing special when the drop down area		* is selected.		*/				/* Set the colors */		setColors ();	}