Don't use the == operator to compare the contents of two String objects, it compares whether the two objects are the same object. Clearly two different String objects can have the same contents. Use the equals() method to do that comparison.
And by the way, "Thread.sleep(200)" isn't going to sleep for 1 second. However even if it did, that code isn't going to do what you want. Read the Swing threading tutorial: Lesson: Concurrency in Swing to find out how to do it.