Why is "ActionListener" not a "ClickListener",

Why ActionListenernot a ClickListener?

+3
source share
2 answers

Since you do not always click, pressing the enter key can also be handled using the ActionListener.

+9
source

he thinks this is one and the same thing, but personally I prefer an action or actionlistener, it is much easier to learn, and the code can be reused. but it still depends on what you really want to do.

0
source

Source: https://habr.com/ru/post/1783669/


All Articles