Hi all

I was wondering if anyone has tried using jump inside another

application which can only house a panel (not a window).

I have tried embedding a LayerViewPanel,  TreeLayerNamePanel and

WorkbenchToolBar inside my main application and I get into a dead end

when the I select any of the editing  cursor tools ("draw polygon" and

"move selected item")  and click on the map. At this point  the

activate function of the AbstractCursorTool tries to get the workbench

( which I don't have). If any one has tried this kind of embedding or

knows how to use JUMP as a toolkit correctly I would surly appreciate

their help.

Here is the exception:

Exception occurred during event dispatching:

java.lang.NullPointerException

   at 
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool.workbench(AbstractCursorTool.java:417)

   at 
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool.getWorkbench(AbstractCursorTool.java:413)

   at 
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool.activate(AbstractCursorTool.java:226)

   at 
com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool.activate(DelegatingTool.java:102)

   at 
com.vividsolutions.jump.workbench.ui.cursortool.QuasimodeTool.activate(QuasimodeTool.java:123)

   at 
com.vividsolutions.jump.workbench.ui.LayerViewPanel.setCurrentCursorTool(LayerViewPanel.java:287)

   at 
com.vividsolutions.jump.workbench.ui.WorkbenchToolBar$3.actionPerformed(WorkbenchToolBar.java:152)

   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

   at 
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)

   at 
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

   at 
javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:273)

   at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)



Thanks a lot

Farid Hamedy

_______________________________________________
jump-users mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jump-users

Reply via email to