Button is a selectable user interface object that issues notification when pressed and released. It is a widget that is clicked by the user in order to initiate some processing.
The following are the important constructors of Button class.
Button(Composite parent, int style)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
The following are the important methods of Button class.
In order to work with events in SWT, you create a listener specific to the event that you wish to capture. There is an interface for each listener that you can use (for example SelectionListener). There is also a class that will provide you with the event information (for example SelectionEvent). Within the listener that you create, you must implement the methods defined in the interface. Java Code: SelectionListener listener = new SelectionListener()
SelectionListener listener = new SelectionListener()
How can i...