This might well be a very noob question but I am one so it would be great if you could explain in an easy to understand manner for me.
so I was following up with a swing tutorial and faced this
nameOfButton.addActionListener(this);
so I know what this is when used in context of constructor as it calls itself again.
Also I know what it does in terms of relating parameters of method to variables within the class.
But I am curious to what this in such instance refers to. Does it refer to the button itself? so does it mean it's creating an action listener of itself or does it somehow refer to the method it is in? Thank you