Mega Code Archive

 
Categories / Java Tutorial / SWT
 

The Widget Class

org.eclipse.widgets.Widget class is the top-level class of all the UI components in SWT/JFace. A Widget can be created and disposed of, and it is capable of issuing notifications to listeners when events occur. The Constructor: public Widget(Widget parent, int style) Almost all kinds of UI components in SWT/JFace have similar constructors as this one.