### Set App to Full Screen

To set an app to full screen mode, make use of JavaObjects to access and execute Java Class Fields and Method.
Sub
'Sets a form to full screen
'Reference: http://docs.oracle.com/javase/8/javafx/api/javafx/stage/Stage.html
`Sub SetFullScreen(frm As Form)
'Create a new JavaObject and assign the form
Dim joForm As JavaObject = frm
'Get the stage field from the form
Dim joStage As JavaObject = joForm.GetField("stage")
'Apply API method setFullScreen to the stage which is bind to the form
joStage.RunMethod("setFullScreen", Array(True))
End Sub`
Example
`Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1")
MainForm.Show
SetFullScreen(MainForm)
End Sub`

Changed: , Category: Application, File: T6C159M1183.htm, ID: 1183