Mark this as solved then.
Type: Posts; User: Norm
Mark this as solved then.
I was asking for a program that will compile, execute and show the problem. Without that I can't say what is happening.
The this variable can be used in any non static method in a class.
You need to make a small, complete program that compiles, executes and shows the problem. There small pieces of code that you've...
If the listener called OK now, what is the code in the listener method supposed to do?
What is the problem now?
Add a println statement to the listener method that prints a message when it is called and also prints out the value of e
so you can see if it is executed and what the contents of the event object...
Please explain what "doesn't work"means.
Copy the full text of any error messages and paste it here,