What happens when you execute the code an click on the button?
Add printlns to each listener and see when/if they are called.
Type: Posts; User: Norm
What happens when you execute the code an click on the button?
Add printlns to each listener and see when/if they are called.
Why are you having the two listeners on a button?
Please post the full text of the error message.
Can you use the javac compiler program to compile your program? The IDE's output does not show the source lines where the errors are.
Here is a sample of the output from the javac program:
...
Where is the full text of the error messages?
You can not nest method definitions within other method definitions.
Please post the full text of the error messages.
If the compiler says there is an error, I believe the compiler. I need to see the full text of what the compiler is saying.
I can not tell how the...
You must override ALL methods in an interface that you implement.
What variables? Are they defined and are their definitions in scope for where you are trying to use them.
What was not recognized?
Make sure all variables are in scope.
Can you explain what your problem is? The last posted code looks like it does what you are asking about.