You're still doing a bit too much work. You're letting the guess decide if it should flip each character, when this operation has already been done with the initialization of the word. All you need to do is flip it if it matches:
PHP Code:
}else if(source == guess){
boolean bGuessMatched = false;
char[] currentWord = this.wordField.getText().toCharArray();
char guessChar = guessField.getText().charAt(0);
for (int i = 0; i < actualWord.length(); ++i)
{
if (actualWord.charAt(i) == guessChar)
{
currentWord[i] = actualWord.charAt(i);
bGuessMatched = true;
}
}
if (!bGuessMatched)
{
--this.newErrorCount;
this.errorField.setText(this.newErrorCount + "");
}
this.wordField.setText(new String(currentWord));
}
Like that. If you want to insensitively compare, you can do so by using the static Character class methods .toUpperCase or .toLowerCase on each of the chars during comparison. That way 'T' and 't' will both match 'T' and 't'.
After this, you just need to deal with the win / lose functionality based on the error counter.