Share

InfoNode Docking Windows

Tracker: Bugs

5 ClassCastException in RootWindow.internalStartDrag() - ID: 2782803
Last Update: Comment added ( creator )

...
((JDialog) (fw.getTopLevelAncestor())).toFront();
...
((JDialog) (fwStartedDrag.getTopLevelAncestor())).toFront();

The above fails if we use FloatingWindowProperties().setUseFrame(true). The
fix is to cast to Window instead of JDialog.

FYI, Complete statck trace :
java.lang.ClassCastException: javax.swing.JFrame cannot be cast to
javax.swing.JDialog
at net.infonode.docking.RootWindow.internalStartDrag(Unknown Source)
at net.infonode.docking.WindowDragger.<init>(Unknown Source)
at net.infonode.docking.WindowDragger.<init>(Unknown Source)
at net.infonode.docking.TabWindowMover.tabDragged(Unknown Source)
at net.infonode.tabbedpanel.TabbedPanel.fireDraggedEvent(Unknown Source)
at net.infonode.tabbedpanel.TabbedPanel.access$1400(Unknown Source)
at net.infonode.tabbedpanel.TabbedPanel$4.componentDragged(Unknown Source)
at
net.infonode.gui.draggable.DraggableComponentBox.fireDraggedEvent(Unknown
Source)
at net.infonode.gui.draggable.DraggableComponentBox.access$400(Unknown
Source)
at net.infonode.gui.draggable.DraggableComponentBox$1.dragged(Unknown
Source)
at net.infonode.gui.draggable.DraggableComponent.fireDraggedEvent(Unknown
Source)
at net.infonode.gui.draggable.DraggableComponent.dragged(Unknown Source)
at net.infonode.gui.draggable.DraggableComponent.access$500(Unknown
Source)
at net.infonode.gui.draggable.DraggableComponent$2.mouseDragged(Unknown
Source)
at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
at java.awt.AWTEventMulticaster.mouseDragged(Unknown Source)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


Maksym Korotkiy ( mkorotkiy ) - 2009-04-28 12:27

5

Closed

Fixed

Nobody/Anonymous

Docking Windows

None

Public


Comment ( 1 )

Date: 2009-05-06 13:04
Sender: creatorProject Admin

Fix included in next release


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2009-05-06 13:04 creator
resolution_id None 2009-05-06 13:04 creator
allow_comments 1 2009-05-06 13:04 creator
close_date - 2009-05-06 13:04 creator