The example below presents a listener specific to the SWT.

Java Code:
SelectionListener listener = new SelectionListener() 
{
	public void widgetSelected(SelectionEvent arg) 
	{
		System.out.println("Button Selected");
	}
	public void widgetDefaultSelected(SelectionEvent arg) 
	{
	}
};