JHarley1
JHarley1

Reputation: 2112

Why is an 'ActionListener' not a 'ClickListener'

Why is an ActionListener not a ClickListener?

Upvotes: 3

Views: 240

Answers (2)

Zyrax
Zyrax

Reputation: 171

it think it's just the same but personally i prefer action or actionlistener it much easier to learn and the code is reusable. but still it depends on what you really want to do.

Upvotes: 0

Otávio Décio
Otávio Décio

Reputation: 74280

Because you are not always clicking, pressing enter also can be handled by an ActionListener.

Upvotes: 9

Related Questions