That's pretty much exactly what I suggested in the first reply.
Type: Posts; User: KevinWorkman
That's pretty much exactly what I suggested in the first reply.
I'm not convinced this is the best way to achieve your goal.
But to answer your question, you have to do the loop outside of your ActionListener (and not on the EDT). In that loop, check against a...