I'm new to Java/Android. I don't understand the "this" in addActionListener(this). I have read many books and forum, but I still confuse the following:
Someone explain: "this" is a refernce to the current object"
Register an instance of the event handler class as a listenser on one or more components. someComponent.addActionListener(instanceofMyClass);
OK, I understand, it is an object of a class.
However, someone explain: "this" represents an implemented and instantiated ActionListener, which happens to be your class.
So "this" can be an object of a class and also a "class". This is what I don't understand.
Would someone explain clearly to me. Thanks!