### Set Form Maximized

To set a Form maximized, use the API method setMaximized (requires the JavaObject library).
Reference: https://docs.oracle.com/javase/8/javafx/api/javafx/stage/Stage.html
Example
`Sub Process_Globals
Private fx As JFX
Private MainForm As Form
...
End Sub`
`Sub SetFormMaximized(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("setMaximized", Array(True))
Log("Maximazed set")
End Sub`
Note above code can be shortened:
Dim joForm As JavaObject = MainForm
joForm.GetFieldJO("stage").RunMethod("setMaximized", Array(True))
Check if Form is Maximized
`Sub IsMaximized(frm As Form) As Boolean
Dim joForm As JavaObject = frm
Return joForm.GetFieldJO("stage").RunMethod("isMaximized", Null)
End Sub`

Changed: , Category: Forms, File: T6C195M1432.htm, ID: 1432