Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1") 'Load the layout file.
MainForm.Show
Sleep(0)
Dim FormJO As JavaObject = MainForm
Dim Scene As JavaObject = FormJO.GetField("scene")
Log(Scene.RunMethod("getFocusOwner",Null))
End Sub