7.2.1 Application - Reference Documentation
Authors: Andres Almiray
Version: 1.2.0
7.2.1 Application
Provided by: Swing pluginThis node defines a top level container depending on the current running mode. It it'sSTANDALONE or WEBSTART it will create a Window subclass according to the following rules:
- class name defined in
app.config.application.frameClass(configured inApplication.groovy) JXFrameif SwingX is availableJFrameif all others fail
APPLET run mode, the container returned for the first invocation of the application node will be the applet itself, for all others the previous rules apply.Of all the properties suggested by the default template you'll notice iconImage and iconImages. The first property is a standard property of JFrame. It's usually defines the icon to be displayed at the top of the frame (on platforms that support such setting). The second property (iconImages) is a Jdk6 addition to java.awt.Window. This property instructs the window to select the most appropriate icon according to platform preferences. Griffon ignores this setting if running in Jdk5. This property overrides the setting specified for iconImage if its supported in the current Jdk and platform.