-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
None
-
x86
-
windows_nt
jdkx tests ran OK except for Drag&Drop in stylepad demo, which
throws NullPointerException during a drag (see below).
NOTE: running stylepad using the latest win32 promotion
[j:/java/jdk1.4/win/bin/java] gives the same error.
To reproduce, start up jdkx on the stylepad in your
win32 environment (substitute the path to your build
for the "-b" string below):
net use g: '\\jdk\java-jdk'
g:/bin/jdkx -b D:/merlin/build/win32/bin stylepad
When the window comes up, zone some text and try
to drag it. You will see the following output:
cd D:/merlin/build/win32/demo/jfc/Stylepad
D:/merlin/build/win32/bin/java -cp Stylepad.jar;. Stylepad
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicDropTargetListener.dragOver(BasicDropTargetListener.java:211)
at javax.swing.TransferHandler$SwingDropTarget.dragOver(TransferHandler.java:488)
at sun.awt.dnd.SunDropTargetContextPeer.processMotionMessage(SunDropTargetContextPeer.java:485)
at sun.awt.dnd.SunDropTargetContextPeer.access$600(SunDropTargetContextPeer.java:55)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchMotionEvent(SunDropTargetContextPeer.java:791)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:737)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
at java.awt.Component.dispatchEventImpl(Component.java:2783)
at java.awt.Container.dispatchEventImpl(Container.java:1310)
at java.awt.Component.dispatchEvent(Component.java:2765)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3068)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:2849)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2744)
at java.awt.Container.dispatchEventImpl(Container.java:1284)
at java.awt.Window.dispatchEventImpl(Window.java:1228)
at java.awt.Component.dispatchEvent(Component.java:2765)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:423)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
throws NullPointerException during a drag (see below).
NOTE: running stylepad using the latest win32 promotion
[j:/java/jdk1.4/win/bin/java] gives the same error.
To reproduce, start up jdkx on the stylepad in your
win32 environment (substitute the path to your build
for the "-b" string below):
net use g: '\\jdk\java-jdk'
g:/bin/jdkx -b D:/merlin/build/win32/bin stylepad
When the window comes up, zone some text and try
to drag it. You will see the following output:
cd D:/merlin/build/win32/demo/jfc/Stylepad
D:/merlin/build/win32/bin/java -cp Stylepad.jar;. Stylepad
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicDropTargetListener.dragOver(BasicDropTargetListener.java:211)
at javax.swing.TransferHandler$SwingDropTarget.dragOver(TransferHandler.java:488)
at sun.awt.dnd.SunDropTargetContextPeer.processMotionMessage(SunDropTargetContextPeer.java:485)
at sun.awt.dnd.SunDropTargetContextPeer.access$600(SunDropTargetContextPeer.java:55)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchMotionEvent(SunDropTargetContextPeer.java:791)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:737)
at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
at java.awt.Component.dispatchEventImpl(Component.java:2783)
at java.awt.Container.dispatchEventImpl(Container.java:1310)
at java.awt.Component.dispatchEvent(Component.java:2765)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3068)
at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:2849)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2744)
at java.awt.Container.dispatchEventImpl(Container.java:1284)
at java.awt.Window.dispatchEventImpl(Window.java:1228)
at java.awt.Component.dispatchEvent(Component.java:2765)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:423)
at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
- duplicates
-
JDK-4388802 Drag and drop is raising exception for JList
- Closed