Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private TextField1 As TextField
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
TextField1.Style="-fx-aligment: right"
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub
Sub TextField1_TextChanged (Old As String, New As String)
TextField1.SetSelection(0,0)
End Sub