JRE-232: one more misprint in createAndShowGUI
diff --git a/test/java/awt/event/KeyEvent/DeadKey/deadKeyMacOSX.java b/test/java/awt/event/KeyEvent/DeadKey/deadKeyMacOSX.java
index 99b6669..0a3b19e 100644
--- a/test/java/awt/event/KeyEvent/DeadKey/deadKeyMacOSX.java
+++ b/test/java/awt/event/KeyEvent/DeadKey/deadKeyMacOSX.java
@@ -106,6 +106,7 @@
                 lock.unlock();
             }
         };
+        frame.add(panel);
 
         lock.lock();
 
@@ -119,7 +120,6 @@
         } finally {
             lock.unlock();
             panel.addKeyListener(new DeadKeyListener());
-            frame.add(panel);
         }
     }