views:

258

answers:

0

I have a Java application using jTree with 'drag and drop' support. When I run it on a SuSE box (Server details below ) and redirect the GUI interface using xming x-server (version details below) to a windows box , the drag and drop functionality in jTree stops working. After analyzing a bit I found that X-server is able to recognize the drag event but fails to recognize the drop event.

Server details:

OS : Suse Linux Enterprise Server 10 (i586)

Version : 10

Patch level : 3

Other version information:

Java : JDK 5

Xming 6.9.0.31

Is there any setting, which should be done in X-server prior to running Java swing applications?

Here is a sample code which behaves in exactly same way (i.e. drag and drop does not work when running on X-server): http://www.java2s.com/Code/Java/Swing-JFC/TreeDragandDrop.htm

I have also tried using XWin32 and WinaXe X-servers, and they work perfectly fine. But, they are all licensed. It would be great if one of the free and widely used X-servers (Cygwin or Xming) work for it.

TIA,

Shefali