--- a/jdk/src/share/classes/java/awt/Window.java Thu Oct 03 18:01:25 2013 +0400
+++ b/jdk/src/share/classes/java/awt/Window.java Thu Oct 03 19:02:45 2013 +0400
@@ -1034,7 +1034,9 @@
closeSplashScreen();
Dialog.checkShouldBeBlocked(this);
super.show();
- locationByPlatform = false;
+ synchronized (getTreeLock()) {
+ this.locationByPlatform = false;
+ }
for (int i = 0; i < ownedWindowList.size(); i++) {
Window child = ownedWindowList.elementAt(i).get();
if ((child != null) && child.showWithParent) {
@@ -1107,6 +1109,9 @@
modalBlocker.unblockWindow(this);
}
super.hide();
+ synchronized (getTreeLock()) {
+ this.locationByPlatform = false;
+ }
}
final void clearMostRecentFocusOwnerOnHide() {