Drag and Drop from a screen device (:0.0) to another (:0.1)

Hello,

Working with JDK 1.4 I have used the drag and drop in order to drag objects from a JFrame displayed in the logical screen :0.0 to another one, working in the same JVM, but displayed in the logical screen :0.1. This work fine.

Now, I'm usin the JDK 1.5. With the same code, the drag operation does not work. During the drag operation, I can not move the mouse from one screen to another. The mouse is "blocked" in the source logical screen. The same code works with the JDK1.4 ? I have searched in the forum and I don't find any post on that subject ?

The drag and drop is not compliant with the JDk 1.4 ? What can I do to resolve this problem ?

Thanks you for yours answers !!

Bruno

[729 byte] By [Bruno-Lopeza] at [2007-11-26 15:30:27]
# 1
Perhaps something has changed, but that would surprise me. In any case, perhaps the drag & drop trail can help you with your problem. http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html
gimbal2a at 2007-7-8 21:47:06 > top of Java-index,Java Essentials,Java Programming...
# 2

I have change my drag and drop implementation. The old one uses the DragGestureListener. Now, I just use the TransfertHandler.

The result in exactly the same : When the mouse reach the screen border, you can not move it to the other screen...

Can someone try whith its application ?

Have someone have a solution.... It is very important for my project.

Thanks a lot !

Bruno

Bruno-Lopeza at 2007-7-8 21:47:06 > top of Java-index,Java Essentials,Java Programming...
# 3

Hello,

I have found my answer: In order to allow the drag and drop from one screen to another, we have to use the motid dnd and not the default one the XDND. So the following properties have to be specified:

java -Dawt.dnd.motifdnd=true -Dawt.toolkit=sun.awt.motif.MToolkit

Enjoy it !

Bruno

Bruno-Lopeza at 2007-7-8 21:47:06 > top of Java-index,Java Essentials,Java Programming...