equal
deleted
inserted
replaced
51 import javax.accessibility.*; |
51 import javax.accessibility.*; |
52 import sun.awt.AppContext; |
52 import sun.awt.AppContext; |
53 import sun.awt.CausedFocusEvent; |
53 import sun.awt.CausedFocusEvent; |
54 import sun.awt.SunToolkit; |
54 import sun.awt.SunToolkit; |
55 import sun.awt.util.IdentityArrayList; |
55 import sun.awt.util.IdentityArrayList; |
|
56 import sun.java2d.Disposer; |
56 import sun.java2d.pipe.Region; |
57 import sun.java2d.pipe.Region; |
57 import sun.security.action.GetPropertyAction; |
58 import sun.security.action.GetPropertyAction; |
58 import sun.security.util.SecurityConstants; |
59 import sun.security.util.SecurityConstants; |
59 |
60 |
60 /** |
61 /** |
407 /* reset after setLocation */ |
408 /* reset after setLocation */ |
408 setLocationByPlatform(locationByPlatformProp); |
409 setLocationByPlatform(locationByPlatformProp); |
409 } |
410 } |
410 |
411 |
411 modalExclusionType = Dialog.ModalExclusionType.NO_EXCLUDE; |
412 modalExclusionType = Dialog.ModalExclusionType.NO_EXCLUDE; |
412 |
|
413 sun.java2d.Disposer.addRecord(anchor, new WindowDisposerRecord(appContext, this)); |
|
414 } |
413 } |
415 |
414 |
416 /** |
415 /** |
417 * Constructs a new, initially invisible window in the default size. |
416 * Constructs a new, initially invisible window in the default size. |
418 * |
417 * |
538 private void ownedInit(Window owner) { |
537 private void ownedInit(Window owner) { |
539 this.parent = owner; |
538 this.parent = owner; |
540 if (owner != null) { |
539 if (owner != null) { |
541 owner.addOwnedWindow(weakThis); |
540 owner.addOwnedWindow(weakThis); |
542 } |
541 } |
|
542 |
|
543 // Fix for 6758673: this call is moved here from init(gc), because |
|
544 // WindowDisposerRecord requires a proper value of parent field. |
|
545 Disposer.addRecord(anchor, new WindowDisposerRecord(appContext, this)); |
543 } |
546 } |
544 |
547 |
545 /** |
548 /** |
546 * Construct a name for this component. Called by getName() when the |
549 * Construct a name for this component. Called by getName() when the |
547 * name is null. |
550 * name is null. |