We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c1d52d commit f64c12dCopy full SHA for f64c12d
sources/net.sf.j2s.java.core/src/java/awt/Component.java
@@ -4730,9 +4730,9 @@ public synchronized void addMouseListener(MouseListener l) {
4730
4731
// // if this is a lightweight component, enable mouse events
4732
// // in the native container.
4733
- // if (peer instanceof LightweightPeer) {
4734
- // parent.proxyEnableEvents(AWTEvent.MOUSE_EVENT_MASK);
4735
- // }
+ if (peer instanceof LightweightPeer && parent != null) {
+ parent.proxyEnableEvents(AWTEvent.MOUSE_EVENT_MASK);
+ }
4736
}
4737
4738
/**
0 commit comments