### Set Form Iconified

To set a Form iconified, use the API method "setIconified" from the JavaFX Stage Class (requires the JavaObject library).
Reference: http://docs.oracle.com/javafx/2/api/javafx/stage/Stage.html
Example MainForm setIconified
'Define the Stage constructor
'Constructor = Stage() Creates a new instance of decorated Stage.
Dim joStage As JavaObject = MainForm
'Set the form iconified Flag = True; Set flag to false to show the form
joStage.GetFieldJO("stage").RunMethod("setIconified", Array(True))
'joStage.GetFieldJO("stage").RunMethod("setIconified", Array(False))
'Get the iconified state
Log("IsIconified: " & joStage.GetFieldJO("stage").RunMethod("isIconified", Null))
Example MainForm setFullscreen
Dim joStage As JavaObject = MainForm
'Set form fullscreen
joStage.GetFieldJO("stage").RunMethod("setIconified", Array(False))
joStage.GetFieldJO("stage").RunMethod("setFullScreen", Array(True))
'Get form fullscreen state
Log("IsFullScreen: " & joStage.GetFieldJO("stage").RunMethod("isFullScreen", Null))
Example MainForm getStyle
Dim joStage As JavaObject = MainForm
Log("Form Style:" & joStage.GetFieldJO("stage").RunMethod("getStyle", Null))
Output Example:
DECORATED

Changed: , Category: Forms, File: T6C195M1431.htm, ID: 1431