Skip to content

Commit 5f8afb2

Browse files
committed
DropTarget should just access Component.peer directly
1 parent d3a034d commit 5f8afb2

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/dnd/DropTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ public void addNotify(ComponentPeer peer) {
499499

500500
for (Component c = component;
501501
c != null && peer instanceof LightweightPeer; c = c.getParent()) {
502-
peer = ((JSComponent) c).getOrCreatePeer(); // SwingJS was getPeer(), but this is only if attached.
502+
peer = /** @j2sNative c.peer || */null;//((JSComponent) c).peer;//getPeer(); // SwingJS was getPeer(), but this is only if attached.
503503
}
504504

505505
//if (peer instanceof DropTargetPeer) {

0 commit comments

Comments
 (0)