Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private Button1 As Button
Private Button2 As Button
Private Button3 As Button
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
Colore(Button1, fx.Colors.Red)
Colore(Button2, fx.Colors.Green)
Colore(Button3, fx.Colors.Yellow)
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 Colore (view As Node, col As Paint) As String
Return CSSUtils.SetBackgroundColor(view, col)
End Sub