posted 16 years ago
OK... lets give the example more perspective.
Class A (has method A) and Class B(had method B)...
in method B you have a JButton which is passed to method B via the a call from method A. Within method B i want to addActionListener(instance of the calling class)
How do you get reference to the particular instance of the calling class? Thereby leaving the implementation of actionPerformed method to the bounds of Class A?