More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. In GUI programming, an object that can be registered to be notified when events of some given type occur. The object is said to listener? for the events.
Help us improve. Please let us know the company, where you were asked this question :
Ans. The Display and Shell classes are key components of SWT applications.
A org.eclipse.swt.widgets.Shell class represents a window.
The org.eclipse.swt.widgets.Display class is responsible for managing event loops, fonts, colors and for controlling the communication between the UI thread and other threads. Display is the base for all SWT capabilities.
Help us improve. Please let us know the company, where you were asked this question :
Ans. A layout manager is responsible for arranging the user interface components of a container, e.g. a Composite, on the screen. SWT offers several standard layout managers.
Ans. The TreeViewer class provides viewer support for displaying trees. This widget is used to display parent-child information with buttons to expand and collapse the tree.
We have to create and specify the LabelProvider and Content Provider classes. In the respective classes we specify the parent and child objects and their relationship.
Help us improve. Please let us know the company, where you were asked this question :
Ans. Only a single class ie Button is used to create all button types. We distinguish among different types by specifying the style while creating a new button object.
Help us improve. Please let us know the company, where you were asked this question :