This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Its a Swing DnD based question for Linux. Sheriff if you feel its more suited for Swing forum please move it to that forum.
I am trying to drag and drop files from Desktop onto my Java application. it works well with Windows XP.
But when I try to do the same on Redhat Linux(psyche) with KDE version 3.0.3-8. the components are not responsive at all. I thought its got to do with the way I was running my Java application through the shell. Hence i tried running my app through RunCommand on KDesktop but still the same result.
I appreciate any suggestions/solutions/work arounds for this problem.
Unfortunately, there are two different common DnD mechanisms used on Linux. They're mutually incompatible. One is more or less part of X, while the other is a Linux-specific innovation. It's been a while since I had to deal with this, but last time I looked, Sun's JRE and KDE weren't using the same one. I think there's very little you can do about this, unfortunately.
One app I recall that was Swing-compatible DnD-wise was Mozilla -- you could DnD text between Mozilla's URL bar and Swing apps.