I used a ListView component with a simple list.
I need to read the item on which click event was generated.
I used the following method:
but by mistake:
(RuntimeException) java.lang.RuntimeException: Method: getCode not found in: javafx.scene.input.MouseEvent
Where am I wrong? How do I simply read the voice where the click was clicked?
Thank you
I need to read the item on which click event was generated.
I used the following method:
B4X:
Sub mCtrlLVMenu_MouseClicked (EventData As MouseEvent)
Log("ClickCount " & EventData.ClickCount)
Try
Dim jo As JavaObject = EventData
Dim code As String = jo.RunMethod("getCode", Null)
Catch
Log(LastException)
End Try
Log("menu " & code)
End Sub
but by mistake:
(RuntimeException) java.lang.RuntimeException: Method: getCode not found in: javafx.scene.input.MouseEvent
Where am I wrong? How do I simply read the voice where the click was clicked?
Thank you