Explain how two components can be set up to share the same listener. How can the listener tell which component generated the event?
What will be an ideal response?
Two different components may generate the same type of event. For example, a push button and a text field both generate an action event. Therefore, the same listener object can be added to both components. When the event occurs, the component that generates the event calls the listener method. The getSource method of the event object returns a reference to the generating component.
You might also like to view...
The sort algorithm requires a(n) _____ iterator.
Fill in the blank(s) with the appropriate word(s).
Where does the output appear when you run a script in the PowerShell ISE?
A. Top pane B. Console pane C. Command-Add-on pane D. Scripting pane
List some of the elements you can create using Flash, and describe the process for adding a Flash movie to a web page.
What will be an ideal response?
This query is typically used by business managers to evaluate data in the tables of an existing database system that is maintained by their firm's IT departments:
A) Select or Crosstab query. B) Update query. C) Make Table query. D) Append query.