Skip to main content

Flexdock: drag dockable outside main frame

1 reply [Last post]
john14v6
Offline
Joined: 2004-07-30

I have DockingManager.java version 1.5, and get a NullPointerException when I drag a dockable outside the main frame. The exception occurs at the following line (522) in DockingManager.java.

boolean ret = target.dock(dockableCmp, dockable.getDockableDesc(), region, dockable.isDockedLayoutResizable());

Does anybody know why this is being caused and what the resolution is?

Thanks,

Ashish

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
john14v6
Offline
Joined: 2004-07-30

I should have included this in my previous post. Sorry. Here is the exception:

java.lang.NullPointerException
at org.flexdock.docking.DockingManager.dropComponent(Unknown Source)
at org.flexdock.docking.DockingManager.stopDragImpl(Unknown Source)
at org.flexdock.docking.DockingManager.stopDrag(Unknown Source)
at org.flexdock.docking.DockingManager.access$300(Unknown Source)
at org.flexdock.docking.DockingManager$PipelineManager.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)