The example below presents a listener specific to the SWT.
SelectionListener listener = new SelectionListener()
{
public void widgetSelected(SelectionEvent arg)
{
System.out.println("Button Selected");
}
public void widgetDefaultSelected(SelectionEvent arg)
{
}
};