Swing? Okay, let's move it to the Swing forum then.
And I added code tags to the post, so the code is more readable.
Also, don't use == to compare the contents of two
String objects, use the String's equals() method instead.
Okay. So... what was your question again? You're iterating through a HashMap's entries, but what exactly do you want to do with them?