I don't think you can use JavaObject here since the field is not exposed in the ViewGroup API.
You will need to use reflection, something similar to this:
B4X:
Dim obj1 As Reflector
obj1.Target = Panel1
Log(obj1.GetField("mLastTouchDownY"))
Log(obj1.GetField("mOldHeightMeasureSpec"))