Sub ReplaceMenuItem
Dim jo As JavaObject = MenuBar1.Menus.Get(4)
Dim lbl As Label
lbl.Initialize("yourLabel")
lbl.Text = Chr(0xf0c5)
lbl.Font = fx.CreateFontAwesome(18)
jo.RunMethod("setText",Array("")) 'Replace existing text (if you have set some)
jo.RunMethod("setGraphic",Array(lbl))
End Sub
Sub yourLabel_MouseClicked (EventData As MouseEvent)
Log("Hello")
End Sub