--- old/src/share/classes/java/awt/peer/WindowPeer.java 2013-02-15 13:37:47.000000000 +0400 +++ new/src/share/classes/java/awt/peer/WindowPeer.java 2013-02-15 13:37:47.000000000 +0400 @@ -120,4 +120,16 @@ * Instructs the peer to update the position of the security warning. */ void repositionSecurityWarning(); + + /** + * Grabs focus. + */ + void grabFocus(); + + /** + * Ungrabs focus. + * + * @param postEvent posts {@code UngrabEvent} when {@code true} + */ + void ungrabFocus(boolean postEvent); }