Not directly related to your problem, as it sounds like an IDE issue that is oftentimes hard to remotely diagnose, but never use == to compare the content of a String...use the equals() method.