Java - Is it possible to override an ActionListener in the SuperClass?
Posted
by KP65
on Stack Overflow
See other posts from Stack Overflow
or by KP65
Published on 2010-03-13T17:45:29Z
Indexed on
2010/03/13
17:55 UTC
Read the original article
Hit count: 185
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?
© Stack Overflow or respective owner