This code snippet doesn't show the attempt to set checkMate to anything. Are you sure you remembered to assign something to checkMate? Also, I'm sure you are aware but just in case, jtextfields...