The button is the most commonly used component in SWT. And it's easier to use.
Program Description:
The button class is created by the new button (Composite parent,int style), which has two parameters:
The first parameter refers to which container the button is created on. Composite is the most commonly used container, and the shell is a subclass of composite, so this parameter can also accept the shell and any classes that inherit from composite.
The second parameter is used to specify which (or several) specifications the button applies, SWT. None is the default style for keeping the button component. The design is actually a constant, such as the value of Swt.none is 0, view Swt.class source code can find a lot of this constant.
Model table for Button class
About SWT Common components (buttons, checkboxes, radio boxes (button classes))