United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8000286 [macosx] Views keep scrolling back to the drag position after DnD
JDK-8000286 : [macosx] Views keep scrolling back to the drag position after DnD

Details
Type:
Backport
Submit Date:
2012-10-01
Status:
Closed
Updated Date:
2012-11-28
Project Name:
JDK
Resolved Date:
2012-10-02
Component:
client-libs
OS:
Sub-Component:
java.awt
CPU:
Priority:
P2
Resolution:
Fixed
Affected Versions:
7u4
Fixed Versions:
7u10 (b12)

Related Reports
Backport:

Sub Tasks

Description
Views and Palette keeps scrolling back to the drag position after DnD.
Reported only with 7u4 on Mac.

In NetBeans, after dragging and dropping something from Projects or Files Views or Palette in GUI designers, when you scroll the View or Palette up/down, it keeps scrolling itself back to the drag position, making it impossible to select nodes/components not visible without scrolling to them.

http://netbeans.org/bugzilla/show_bug.cgi?id=211406

Debugging revealed that the scrolling is caused by java.awt.dnd.DropTarget.DropTargetAutoScroller. This class is responsible for scrolling a tree/list when something is dragged over it. For some reason the timer isn't reset when the item is dropped or the drag is aborted. Seems like JDK bug since it works fine in other JDK versions.
I've created a sample application that demonstrates the problem. The application uses AWT implementation of DND and runs fine under JDK 1.6

                                    

Comments
Need to backport fix for 7171812 which is safe and well tested.
                                     
2012-10-02
Pushed to the repository.
                                     
2012-10-02



Hardware and Software, Engineered to Work Together