Originally posted by Berdy Ahern:
My main class "TabDemo" has implenents actionListener but I can't also put implements WindowListener can I?
Yes actually you can. A class can implement multiple interfaces but can only extend one class.
As James mentions above, you cannot use the keyword "this" in a static method since there is no "current object". If I understand what you are doing,
you should change
to
This will also mean that TabDemo needs to implement WindowListener which, as I said before, is not a problem even if it already implements ActionListener or any other interface.
HTH
Layne