JDK-5077753 : GTK L&F Drag & Drop (DND) feedback inconsistent with actual GTK
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2004-07-23
  • Updated: 2004-07-23
  • Resolved: 2004-07-23
Related Reports
Duplicate :  
Description

Name: jl125535			Date: 07/23/2004


FULL PRODUCT VERSION :
java version "1.5.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b57)
Java HotSpot(TM) Client VM (build 1.5.0-beta3-b57, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Linux leak.kano.net 2.6.7-mm6 #1 Fri Jul 9 14:52:02 EDT 2004 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz GenuineIntel GNU/Linux

A DESCRIPTION OF THE PROBLEM :
When moving your mouse dragging an item to a JList or JTable, the selection of the table or list changes, following your cursor. This is not what GTK shows when dragging over a list; in fact, the selection doesn't move at all.

The demo at 
http://java.sun.com/docs/books/tutorialJWS/uiswing/misc/example-1dot4/ExtendedDnDDemo.jnlp is a good test case. An application which uses native GTK drag and drop is the Rhythmbox music player, although any GTK application which allows 
you to drag something into a listbox will be just as good reference.


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Implement custom JList UI and JTable UI
(Incident Review ID: 286694) 
======================================================================

Comments
EVALUATION I'm closing this as a duplicate of 4468566. It states that Swing should not use the selection to show the drop location. I've added a not there suggesting that the solution we arrive at should be customized based on L&F. ###@###.### 2004-07-23
23-07-2004