, , , , , - gui ActionListener. , ?
action.getSource() == letterButton
In fact, is this line even compiling? I would be surprised if this were the way you are trying to assign value to a method call that does not make sense.
it would be better
letterButton == action.getSource();
Do you see why?
edit: ignore shit above. not enough sleep or caffeine. Sigh....
In addition, I answered your previous question about how to use an anonymous inner class and should not worry about declaring the variables final.
source
share