This is the mail archive of the
mailing list for the Cygwin XFree86 project.
Re: Running Java application with drag and drop support in cygwin
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-xfree at cygwin dot com
- Cc: deepali dot shefali at gmail dot com
- Date: Mon, 27 Sep 2010 16:20:53 +0100
- Subject: Re: Running Java application with drag and drop support in cygwin
- References: <email@example.com> <4AE9A9A3.firstname.lastname@example.org> <email@example.com> <4AFD73A0.firstname.lastname@example.org> <email@example.com> <firstname.lastname@example.org> <email@example.com> <AANLkTin6_S=LKxH64=SEL_k02po12OQViVLXiT4JQRja@mail.gmail.com>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
On 20/09/2010 11:31, Dees wrote:
On Wed, Dec 23, 2009 at 6:26 PM, Dees<firstname.lastname@example.org> wrote:
People, any clue? Struggling really hard.
On Fri, Dec 18, 2009 at 11:23 AM, Dees<email@example.com> wrote:
Did you get a chance to look at this?
From whatever posts available online, I could not get a clue what is
On Mon, Dec 14, 2009 at 12:12 PM, Dees<firstname.lastname@example.org> wrote:
On Fri, Nov 13, 2009 at 8:26 PM, Jon TURNEY<email@example.com> wrote:
On 30/10/2009 09:06, Dees wrote:
Your reply is much appreciated Jon. I will try to be more specific
about the problem in further mails.
On Thu, Oct 29, 2009 at 8:11 PM, Jon TURNEY<firstname.lastname@example.org>
On 28/10/2009 05:57, Dees wrote:
I have developed a Java application involving jTree with extensive
drag and drop support, which runs correctly in my Linux box. However,
when I switch to a windows box and access the same Linux box using
cygwin x-server, the drag and drop in jTree stops working.
Interestingly, rest of the application still works fine. After
analyzing a bit I found that x-server is able to recognize the drag
event but fails to recognize a drop event.
OS : Suse Linux Enterprise Server 10 (i586)
Version : 10
Patch level : 3
Other version information:
Java : JDK 5
Cygwin setup-version: 2.573.2.3
Also tried using Xming 22.214.171.124 ssh same Linux setup from Windows, but
that also doesn't solve the problem.
Is there any setting, which should be done prior to running the Java
Here is a sample code which behaves in exactly same way.
I have no idea how to use that java code to reproduce the problem you are
Using the above java code in Linux:
1. Download and Install Java Development Toolkit on your Linux box
(Java sun download site:
http://java.sun.com/javase/downloads/index.jsp), if you do not have it
2. Save the sample code in the above link with the file name
TreeTester.java, say in /home/user/
3. Navigate to TreeTester.java from shell, and compile the java code:
# cd /home/user/
# /usr/java/jdk1.5.0_14/bin/javac TreeTester.java
Ignore any warnings of deprecated APIs.
4. This will create a few .class files in /home/user/ directory. Final
step is to run the Java code, using:
# /usr/java/jdk1.5.0_14/bin/java -classpath . TreeTester
This will open up a GUI, with a jTree each on left and right pane.
You can drag and drop any of the leaf nodes from one jTree to the root
node of the other jTree and this should add a new node in the other
jTree. You will get messages on console for the operations being
performed. Now ssh the same box using cygwin/xming from any other
windows box, and run the application using command in step 4. You
should be able to drag (a small icon will come under cursor indicating
that something is being dragged) but when you will drop it, the new
node would not be added to the tree. Thats where lies my problem!!!
Thanks for the test case and instructions, this makes it much easier for me
to try it out.
However, this testcase and your jar archive both work fine for me (using
Given that the test case works for me, but not for you, I suspect this going
to be another Java bug (e.g. ,), which is fixed in the JDK I am using.
If this isn't fixed with the latest Xserver, I guess it might be possible to
put another workaround into the Xserver, if I knew what the problem was, but
since JDK 5 was EOL November 2009 , I'm not sure if it's worth the effort.
Looking at that, you don't seem to be using the last update (update 22),
Volunteer Cygwin/X X Server maintainer
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html