Hello again,
after switching to java11 that I can create an exe file I get problems with the function below. I googled, but found nothing or didn't understand. Anybody the same problem ?
It's a tree and I switch the image on doubleclick.
after switching to java11 that I can create an exe file I get problems with the function below. I googled, but found nothing or didn't understand. Anybody the same problem ?
It's a tree and I switch the image on doubleclick.
B4X:
Sub objTreeQKoerper_MouseClicked (EventData As MouseEvent)
Dim jo As JavaObject = EventData
Dim target As JavaObject = jo.RunMethodJO("getTarget", Null)
Do Until target Is TreeView
Log("I am displayed")
If GetType(target) = "com.sun.javafx.scene.control.skin.TreeViewSkin$1" Then
Log("I am not displayed")
Dim ti As TreeItem = target.RunMethod("getTreeItem", Null)
Log(EventData.ClickCount)
If EventData.ClickCount = 2 Then
If ti.Image = treeres.GetImage Then
ti.Image = treeblank.GetImage
Else
ti.Image = treeres.GetImage
End If
End If
Exit
End If
Dim n As Node = target
target = n.Parent
Loop
End Sub