### Create UI and non UI mode app

Create an UI app and depending on the command line parameter switch:
Show the mainform via MainForm.Show else provide output to the console via Log.
Example
`Sub Process_Globals
Private fx As JFX
Private MainForm As Form
End Sub`
' Test from the command line by: java -jar uinonui.jar s
' Parameter s shows the MainForm = UI
`Sub AppStart (Form1 As Form, Args() As String)
Log("App Start")
MainForm = Form1
'Load the mainform layout file
MainForm.RootPane.LoadLayout("uinonui")
' Log the arguments
For i = 0 To Args.Length -1
Log(i & " = " & Args(i) )
Next
' If argument found, check if "s" and show MainForm
If Args.Length > 0 Then
If Args(0) = "s" Then MainForm.Show
End If
End Sub`

Changed: , Category: Application, File: T6C159M1152.htm, ID: 1152