Hey, I'm trying to change a non-final variable when a button is clicked in my program. The problem I'm running into is that, as far as I know, you can't use non-final variables within an actionlistener which means I'm unable to alter the variable which I want to alter when the button is clicked.
I've looked over a few google pages but so-far I haven't found anything that would give me a way around this predicament. If anyone has a solution or even a suggestion as to how to solve this problem, thanks in advance!