Recent Changes - Search:

Information

Installation

Documentation

 

Frame

The main feature of this element is the capacity for interact with your operating system. You can minimize and restore it in the usual form. Furthermore each simulation view has to host a first element of this type where you can add the other view elements. This frame is called the main frame. The use of child frames is not suitable for java applets on web pages because they can disappear behind the browser window.

Object wrapped

The object wrapped by this element is of the class java.awt.Frame. A Frame is a top-level window with a title and a border.
More information about this class in the Java documentation

Useful methods


    * (This list deliberately left empty.)

Properties

Frame  
Main  
Name Description Values accepted Default
Title The title to display at the top. A string constant or variable.
Image An icon for a iconised frame. A file name or a string constant or variable.
Layout The layout policy for this container. Use the editor provided or read about the layout property.
Visible The visibility of the element. A boolean variable or one of the constants true or false.
On Resize The action to invoke when the element is resized. The Java code to invoke for the action.
On Closing The action to invoke when the window is closing. The Java code to invoke for the action.
Position and Size  
Name Description Values accepted Default
Location The top-left corner location of the window. Type the point coordinates or use the editor provided.
Size The double[] array with the size of the frame in each direction. Type the two size values or use the editor provided.
Resizable Whether the element can be resized. A boolean variable or one of the constants true or false.
Graphical Aspect  
Name Description Values accepted Default
Print Target The view element to print when taking a snapshot. A string constant or variable.
Background The background color for the element. Use the editor provided or read about colors.
Foreground The color to use when drawing or writing in the element. Use the editor provided or read about colors.
Font The font used to display text in the element. Use the editor provided to select name, style and size of the font.
Tooltip Text displayed when the mouse is over the element. A string constant or variable.

 

 



Edit - History - Print - Recent Changes - Search
Page last modified on September 29, 2010, at 03:15 PM