Event Listeners.

Q8. Name the event listeners that would respond to following type of actions:

  1.  a component receives capability to receive input i.e., focus.
  2. a key is pressed on the keyboard.
  3. window is closed.

Ans.

  1. FocusListener
  2. KeyListener
  3. WindowListener.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: