Suma,
I am sorry, about that ItemEvent part....its Action Event in the book too.
Ok , coming back to the question I posted. That was from a mock
test. It said MouseMotionListener too as an answer...How is that?
Here is ANOTHER question from the same exam..
Which Listener interfaces can you add to a TextArea object?
a) TextListener
b) ActionListener
c) MouseMotionListener
d) MouseListener
e) ComponentListener
"
answer :a, c, d, and e. b is not correct, because you cannot add an ActionListener to a
TextArea. (You can add an ActionListener to a TextField, however.)
"
Again my answers would be...'a' only as per Heller....HOW AM I SUPPOSED TO FIGURE OUT THE REST...EVEN THE JLS, does not mention this.I would appreciate any help regarding this.
thanks in advance.