If have two classes, Class A and Class B, B is a subclass of A…if my Class A(the superclass) has a JButton with an ActionListener which is implemented by an anonymous inner class, how can I override what the button does in the subclass?
If have two classes, Class A and Class B , B is a subclass
Share
Hmm, you could have the listener call a protected method of some sort:
Then you can override
doStuffin the subclass. This seems simpler than mucking about with the events more than you have to.