Selection problem

Hi,

I’m getting some issues when trying to select multiple JGoObjects
by selecting one object then using shift or Ctrl to extend the
selection.
Most of the time the selection works up to around the 6th or 7th object
being added to the selection and then I occasionally get the following
exception and objects seem ‘reluctant’ to be added to the selection in
that 2 or 3 clicks are needed to add them and occasionally they
‘refuse’ to be added.

java.lang.InstantiationException: com.xyratex.ioss.jgo.CardNode
at java.lang.Class.newInstance0(Class.java:293)
at java.lang.Class.newInstance(Class.java:261)
at com.nwoods.jgo.JGoObject.copyObject(Unknown Source)
at com.nwoods.jgo.JGoArea.copyObject(Unknown Source)
at com.nwoods.jgo.JGoNode.copyObject(Unknown Source)
at com.nwoods.jgo.JGoCopyMap.copy(Unknown Source)
at com.nwoods.jgo.JGoDocument.copyFromCollection(Unknown Source)
at com.nwoods.jgo.JGoView.copySelection(Unknown Source)
at com.nwoods.jgo.JGoView.doMoveSelection(Unknown Source)
at com.nwoods.jgo.JGoView.doMouseUp(Unknown Source)
at com.nwoods.jgo.JGoView.onMouseReleased(Unknown Source)
at com.nwoods.jgo.JGoView$JGoViewCanvas.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticast er.java:232)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticast er.java:231)
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
javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDis patcher.retargetMouseEvent(BasicInternalFrameUI.java:1420)
at
javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDis patcher.forwardMouseEvent(BasicInternalFrameUI.java:1353)
at
javax.swing.plaf.basic.BasicInternalFrameUI$GlassPaneDis patcher.mouseReleased(BasicInternalFrameUI.java:1286)
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.j ava: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:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventD ispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis patchThread.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:10 0)

Any help or thoughts would be appreciated.

Thanks

Mike

It looks like there was an exception trying to create an instance of a CardNode. It was trying to call the default (zero-argument) constructor. Is that defined and accessible?
The reason it was trying to create a CardNode is that you must have moved the mouse when the mouse-up occurred, and the control-key was held down. A control-drag-drop is supposed to copy the selection.
I’m guessing the exception is causing the “reluctance” you observe.

Thanks for the reply Walter, it helped me fix the problem.

Mike