> When I run as a desktop application, there seems to be a single (operating > system) window that is effectively the desktop for Pivot. > > * Can I control its size?
As Chris mentioned, you can use the DesktopApplicationContext startup parameters to specify an initial size. You can also call getDisplay().getHostWindow() on any component to get a reference to the native (AWT) host window. > * Can I learn its size? When the user reshapes it, can I learn about that? Yes - you can get the size of the AWT host, and you can either listen for AWT events fired by that window, or you can listen for ComponentListener#sizeChanged() events on the Pivot display. For portability, the latter is probably a better option. > * Can I constrain my own org.apache.pivot.wtk.Window to be exactly the size > of this window? (By default, it seems to behave like it has infinite extent.) Yes - if you set the "maximized" property of your Window to true, it will always fill the entire display. > * Can I escape this window, i.e., create a Pivot window/frame/dialog that is > a new (operating system) window? Yes - you can call DesktopApplicationContext.createDisplay(). This will create a new display on which windows can also be opened. It is similar to calling window.open() in a web browser. The new display host is optionally modal - see this example and the Javadoc for more info: http://svn.apache.org/repos/asf/pivot/trunk/examples/src/org/apache/pivot/examples/displays/multiple_display_example.bxml G
