src/share/classes/java/awt/Window.java

Print this page

        

*** 1020,1030 **** } else { beforeFirstShow = false; closeSplashScreen(); Dialog.checkShouldBeBlocked(this); super.show(); ! locationByPlatform = false; for (int i = 0; i < ownedWindowList.size(); i++) { Window child = ownedWindowList.elementAt(i).get(); if ((child != null) && child.showWithParent) { child.show(); child.showWithParent = false; --- 1020,1030 ---- } else { beforeFirstShow = false; closeSplashScreen(); Dialog.checkShouldBeBlocked(this); super.show(); ! setLocationByPlatform(false); for (int i = 0; i < ownedWindowList.size(); i++) { Window child = ownedWindowList.elementAt(i).get(); if ((child != null) && child.showWithParent) { child.show(); child.showWithParent = false;
*** 1093,1102 **** --- 1093,1103 ---- } if (isModalBlocked()) { modalBlocker.unblockWindow(this); } super.hide(); + setLocationByPlatform(false); } final void clearMostRecentFocusOwnerOnHide() { /* do nothing */ }
*** 3032,3042 **** syncLWRequests = f.get("syncLWRequests", systemSyncLWRequests); state = f.get("state", 0); focusableWindowState = f.get("focusableWindowState", true); windowSerializedDataVersion = f.get("windowSerializedDataVersion", 1); ! locationByPlatform = f.get("locationByPlatform", locationByPlatformProp); // Note: 1.4 (or later) doesn't use focusMgr focusMgr = (FocusManager)f.get("focusMgr", null); Dialog.ModalExclusionType et = (Dialog.ModalExclusionType) f.get("modalExclusionType", Dialog.ModalExclusionType.NO_EXCLUDE); setModalExclusionType(et); // since 6.0 --- 3033,3043 ---- syncLWRequests = f.get("syncLWRequests", systemSyncLWRequests); state = f.get("state", 0); focusableWindowState = f.get("focusableWindowState", true); windowSerializedDataVersion = f.get("windowSerializedDataVersion", 1); ! setLocationByPlatform(f.get("locationByPlatform", locationByPlatformProp)); // Note: 1.4 (or later) doesn't use focusMgr focusMgr = (FocusManager)f.get("focusMgr", null); Dialog.ModalExclusionType et = (Dialog.ModalExclusionType) f.get("modalExclusionType", Dialog.ModalExclusionType.NO_EXCLUDE); setModalExclusionType(et); // since 6.0