Private Sub Pane1_MouseDragged (EventData As MouseEvent)
Dim event As JavaObject = EventData
Dim jo As JavaObject = Sender
Dim offsetX, offsetY As Double
offsetX = event.RunMethod("getSceneX",Null) - pressedX
offsetY = event.RunMethod("getSceneY",Null)- pressedY
jo.RunMethod("setTranslateX",Array(jo.RunMethod("getTranslateX",Null)+offsetX))
jo.RunMethod("setTranslateY",Array(jo.RunMethod("getTranslateY",Null)+offsetY))
pressedX = event.RunMethod("getSceneX",Null)
pressedY = event.RunMethod("getSceneY",Null)
End Sub
Private Sub Pane1_MousePressed (EventData As MouseEvent)
Dim event As JavaObject = EventData
pressedX = event.RunMethod("getSceneX",Null)
pressedY = event.RunMethod("getSceneY",Null)
End Sub