GT-3179 - Help - review fixes

This commit is contained in:
dragonmacher 2019-10-07 17:34:31 -04:00
parent 05b23fb9b4
commit 982c63f488
3 changed files with 16 additions and 5 deletions

View file

@ -1830,7 +1830,11 @@ public class DockingWindowManager implements PropertyChangeListener, Placeholder
Component c = parent;
while (c != null) {
if (c instanceof Window) {
// Note: using a Frame here means that we will not find and use a dialog that is a
// parent of 'c' if it itself is parented to a Frame. The issue is that
// Use Case 'C' above may not work correctly. If we find that to be the case,
// then we can try changing 'Frame' to 'Window' here.
if (c instanceof Frame) {
return (Window) c;
}
c = c.getParent();