Re: Running Java application with drag and drop support in cygwin
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 jon.tur...@dronecode.org.uk wrote: 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. Details? 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 6.9.0.31 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 swing applications? Here is a sample code which behaves in exactly same way. http://www.java2s.com/Code/Java/Swing-JFC/TreeDragandDrop.htm I have no idea how to use that java code to reproduce the problem you are seeing. 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 already. 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!!! May be my problem is related to some setting. Though, not sure. Has anybody come across something similar? What should be done then? Please let me know. No it's probably a bug in Cygwin/X. But you're going to need to be a lot more specific about the problem before any progress can be made on fixing it. I have been using Netbeans IDE for compiling and running java code, which creates an executable jar. For your convenience, I am attaching the same with this mail. You can observe the current behavior by running directly this file without the need to compile the source code (as specified above), using: # /usr/java/jdk1.5.0_14/bin/java -jar TreeTester.jar Also, putting some debug messages in the code lets me conclude that it's the drop event which is not being recognized, as the main control never reaches there. Let me know if you need any other specific details or come across any other issue. -- Jon TURNEY Volunteer Cygwin/X X Server maintainer Regards, Shefali TreeTester.jar Description: application/java-archive -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X11R7.5 fontcache..
On 10/29/2009 11:56 PM, Linda Walsh wrote: Yaakov (Cygwin/X) wrote: http://cygwin.com/acronyms/#RSN :-) --- I don't suppose you could express that in ISO format? :-) Since you've asked this on multiple lists, I'm going to assume this is more than just a humorous comment that you don't expect an answer to. Cygwin 1.7 will be released as soon as it's ready. There is no specific date at this time. That's not a reason not to use it however, if you prefer. And if you need something that's only on 1.7, this is a good time to try it out. And since you can install 1.7 beside 1.5 if you like, your risk of borking your Cygwin installation is pretty minimal. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Cygwin 1.7 beta XWin disconnects from Ubuntu after password
Running WinXP, latest service pak and fixes. I had problems with xwin from the Cygwin 1.5.25-15 pegging one of my CPUs at full usage when connecting to an Ubuntu 9.1 box. So I decided to try the 1.7 beta. Well, now that I've upgraded I am having problems connecting to the Ubuntu box. I connect to the Ubuntu box and get the initial log-on screen. Typed in user name, hit return, then got prompt for password. But as soon as I typed in the password and hit return the XWin session immediately exited. I repeated this process several times. $ cat /var/log/XWin.0.log Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 1.7.1.0 (10701000) Build Date: 2009-10-25 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: xwin -query 172.16.18.196 ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1200 h 1600 winInitializeDefaultScreens - Returning 2009-10-30 14:21:49 _ XSERVTransSocketOpenCOTSServer: Unable to open socket for i net6 2009-10-30 14:21:49 _XSERVTransOpen: transport open failed for inet6/SBA2UA8350Q Y7:0 2009-10-30 14:21:49 _XSERVTransMakeAllCOTSServerListeners: failed to open listen er for inet6 2009-10-30 14:21:49 XDMCP warning: INET6 UDP socket creation failed 2009-10-30 14:21:49 winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1 2009-10-30 14:21:49 (II) xorg.conf is not supported 2009-10-30 14:21:49 (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information 2009-10-30 14:21:49 winPrefsLoadPreferences: /etc/X11/system.XWinrc 2009-10-30 14:21:49 LoadPreferences: Done parsing the configuration file... 2009-10-30 14:21:49 winGetDisplay: DISPLAY=:0.0 2009-10-30 14:21:49 winDetectSupportedEngines - Windows NT/2000/XP 2009-10-30 14:21:49 winDetectSupportedEngines - DirectDraw installed 2009-10-30 14:21:49 winDetectSupportedEngines - DirectDraw4 installed 2009-10-30 14:21:49 winDetectSupportedEngines - Returning, supported engines 000 7 2009-10-30 14:21:49 winSetEngine - Using Shadow DirectDraw NonLocking 2009-10-30 14:21:49 winAdjustVideoModeShadowDDNL - Using Windows display depth o f 32 bits per pixel 2009-10-30 14:21:49 winFinishScreenInitFB - Masks: 00ff ff00 00ff 2009-10-30 14:21:49 Screen 0 added at XINERAMA coordinate (0,0). 2009-10-30 14:21:49 MIT-SHM extension disabled due to lack of kernel support 2009-10-30 14:21:49 XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel 2009-10-30 14:21:49 (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.s o 2009-10-30 14:21:49 (II) GLX: Initialized DRISWRAST GL provider for screen 0 2009-10-30 14:21:49 winPointerWarpCursor - Discarding first warp: 547 784 2009-10-30 14:21:49 (--) 3 mouse buttons found 2009-10-30 14:21:49 (--) Setting autorepeat to delay=500, rate=31 2009-10-30 14:21:49 (--) winConfigKeyboard - Layout: 0409 (0409) 2009-10-30 14:21:49 (--) Using preset keyboard for English (USA) (409), type 4 2009-10-30 14:21:49 Rules = base Model = pc105 Layout = us Variant = none Options = none 2009-10-30 14:21:50 winProcEstablishConnection - Hello 2009-10-30 14:21:50 winProcEstablishConnection - Xdmcp, waiting to start clipboa rd client until 4th call... 2009-10-30 14:21:52 winInitClipboard () 2009-10-30 14:21:52 winProcEstablishConnection - winInitClipboard returned. 2009-10-30 14:21:52 winClipboardProc - Hello 2009-10-30 14:21:52 DetectUnicodeSupport - Windows NT/2000/XP 2009-10-30 14:21:52 winGetDisplay: DISPLAY=:0.0 2009-10-30 14:21:52 winClipboardProc - DISPLAY=:0.0 2009-10-30 14:21:52 winProcQueryTree - Hello 2009-10-30 14:21:52 winProcQueryTree - Clipboard client already launched, return ing. 2009-10-30 14:21:52 winClipboardProc - XOpenDisplay () returned and successfully opened the display. 2009-10-30 14:22:05 winClipboardIOErrorHandler! 2009-10-30 14:22:05 winClipboardProc - setjmp returned for IO Error Handler. 2009-10-30 14:22:05 winDeinitMultiWindowWM - Noting shutdown in progress -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/