This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253907

Summary: TopComponent drag support: Provide event when TopComponent undocked by dragging
Product: platform Reporter: j_lee
Component: Window SystemAssignee: Stanislav Aubrecht <saubrecht>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description j_lee 2015-07-28 14:59:16 UTC
We need a way to programmatically detect when a TopComponent is undocked from a containing window, and dropped onto the 'free' desktop area.

According to http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/doc-files/api.html :

"Currently, there is no support for listening to changes in Mode nor in TopComponent, though both have modifiable properties which in principle there might be a need to listen to."

A couple of people have written classes to try to address this deficit:

http://netbeans.sourcearchive.com/documentation/6.8/TopComponentDragSupport_8java_source.html

http://alvinalexander.com/java/jwarehouse/netbeans-src/core/windows/src/org/netbeans/core/windows/view/dnd/TopComponentDragSupport.java.shtml