### Use Form Stage Object

With the Form Stage Class, properties and methods can be used to make changes to a Form (requires the JavaObject library).
Reference: http://docs.oracle.com/javase/8/javafx/api/javafx/stage/Stage.html
Various Examples
Set a Form to Full Screen mode
'Example: SetFormFullScreen(MainForm)
`Sub SetFormFullScreen(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 the API method setFullScreen to the stage which is bind to the form
joStage.RunMethod("setFullScreen", Array(True))
End Sub`
Set the Form Title
'Example: SetFormTitle(MainForm, "My MainForm Title")
`Sub SetFormTitle(frm As Form, title As String)
'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 the API method setTitle to the stage which is bind to the form
joStage.RunMethod("setTitle", Array(title))
End Sub`
Set the Form Iconified (or not)
'Example: SetFormIconified(MainForm, true)
`Sub SetFormIconified(frm As Form, iconified As Boolean)
'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 the API method to the stage which is bind to the form
joStage.RunMethod("setIconified", Array(iconified))
End Sub`

Changed: , Category: Forms, File: T6C195M1436.htm, ID: 1436