Sub Process_Globals
Private imgResize As ImageView
End Sub
Sub imgResize_MouseDragged (EventData As MouseEvent)
Dim jo As JavaObject = EventData
'wasn't sure where to put the next 2 lines, so put them here
'if not here, where should they be placed?
imgResize.PickOnBounds = True
imgResize.MouseCursor = jo.InitializeStatic("javafx.scene.Cursor").GetField("SE_RESIZE")
Dim ScreenX As Double = jo.RunMethod("getScreenX", Null) ' errors on this line
Dim ScreenY As Double = jo.RunMethod("getScreenY", Null)
frm.WindowWidth = ScreenX - frm.WindowLeft
frm.WindowHeight = ScreenY - frm.WindowTop
End Sub