Skip to content

Commit 2df44f1

Browse files
hansonrhansonr
authored andcommitted
Window's owned windows should come to front after a window is brought to
the front
1 parent fc6183d commit 2df44f1

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed
93 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190319211418
1+
20190319215915
93 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190319211418
1+
20190319215915
93 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/java/awt/Window.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,12 @@ final void toFront_NoClientCode() {
11681168
if (isModalBlocked()) {
11691169
modalBlocker.toFront_NoClientCode();
11701170
}
1171+
1172+
for (int i = 0; i < ownedWindowList.size(); i++) {
1173+
if (ownedWindowList.get(i).isVisible())
1174+
ownedWindowList.get(i).toFront();
1175+
}
1176+
11711177
}
11721178
}
11731179

0 commit comments

Comments
 (0)