Campbell Ritchie wrote:Aha. Have you got an algorithm to create those permutations?
Why are you using a Queue?
Campbell Ritchie wrote:Mark Nasr,
I have merged your topic into this topic. I hope that helps.
Campbell Ritchie wrote:And what was the solution?
Knute Snortum wrote:I believe you can access a field from the actionPerformed() method if you pass in the object that needs the setText() to the class that encloses the anonymous class. So like this:
This code is just giving you the idea. ActionPerformer is just a name I gave to the interface that has actionPerformed() in it.
Knute Snortum wrote:I (now) don't think it will work to have a static method because setText() acts on an object, right? And a static method has no object instance.