Answered
Scope of a listener within a class
Here i am again.
I've wrote a class that manages the input from keyboard. It associates a button to an action and sends it to an object.
The problem appears at the key listener object.
At the constructor i define the variables of the class, but i can't access them from within the listener.
I've searched all this forum, found similar problems with no satisfactory answer. And the google didn't help too
How do i access these vars?
I've wrote a class that manages the input from keyboard. It associates a button to an action and sends it to an object.
The problem appears at the key listener object.
At the constructor i define the variables of the class, but i can't access them from within the listener.
I've searched all this forum, found similar problems with no satisfactory answer. And the google didn't help too
How do i access these vars?