Skip to content

Commit adf91c0

Browse files
hansohanso
authored andcommitted
assigns JSApplet "heavy" for the purposes of getting focus
1 parent a85ac6e commit adf91c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6650,7 +6650,7 @@ final boolean requestFocusHelper(boolean temporary, boolean focusedWindowChangeA
66506650
}
66516651

66526652
ComponentPeer peer = this.peer;
6653-
Component heavyweight = (peer instanceof LightweightPeer) ? getNativeContainer() : this;
6653+
Component heavyweight = (!((JSComponent)this).秘winOrApplet && peer instanceof LightweightPeer) ? getNativeContainer() : this;
66546654
if (heavyweight == null || !heavyweight.isVisible()) {
66556655
return false;
66566656
}

0 commit comments

Comments
 (0)