I’m testing out a java desktop application that I’m pretty excited about, but when I run it on my Linux desktop, if I do a drag ‘n drop, it freezes. A little research and I find the following bug: http://bugs.sun.com/view_bug.do?bug_id=6397447 . Basically, if you have Java6’s “splash screen” feature enabled for your application, and you use swing’s Drag ‘n Drop functionality, Xwindows will freeze on DND. The bug report has more details.
Interesting work-around, though: If you start another application that uses swing’s dnd, but doesn’t use a splash screen, leave that running, then start your real application, it works fine. Conveniently, http://java.sun.com/docs/books/tutorial/uiswing/dnd/basicdemo.html is such an application, it’s small, it starts fast, and you can webstart it. So I just inserted that into the startupscript for the application that suffers from the bug.
Tag Archives: java
Java Drag ‘n Drop + Splash screen bug in Linux
0

