[EMAIL PROTECTED] said:
> I'm trying to do drag'n'drop with Swing in JDK 1.2 pre1. However, all
> the examples I've managed to find (well, all two of them, from
> MiningCo and JavaWorld) give me this when I try to drag something:
> 
> java.awt.dnd.InvalidDnDOperationException: The operation requested cannot be 
>performed by the DnD system since it is not in the appropriate state
> 
> Is pre1 broken or am I doing something wrong?

Check the archives:
    http://www.mail-archive.com/java-linux@java.blackdown.org/msg06579.html

Lightweight components seem not to have the XEvent data required by the
underlying Motif library to do drag-n-drop.  I have a native method fix
to this, but it's not pretty.

If you find a solaris jdk1.2 and it successfully runs my test code using
Swing components, we'll know if it's linux or java who is to blame.

                -- Pete


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to