1) assuming the menubar event name in the designer is "idmenu".
2) the Json string for the menuitems in the designer is:
[
{Text: "_Row1", Children:["_Load" ]},
{Text: "_Row2", Children:["_Save", {Text: "_Check", Selected: True}] }
]
then an easy solution is:
Sub idmenu_Action
Dim m As MenuItem=Sender
Dim s As Object=Sender
If GetType(s)="javafx.scene.control.CheckMenuItem" Then
Dim c As CheckMenuItem
c=Sender
End If
Select m.Text
Case "_Load"
log(m.text)
Case "_Save"
log(m.text)
Case "_Check"
Log(c.Selected)
End Select
End Sub
greets