Recent Changes - Search:

Information Foreword What is EJS? Demos/Examples Credits Links Webcasts Installation Download & Install EJS Workspaces Running EJS Conditions of Use Documentation EJS Console EJS Interface Description Panel Model Panel View Panel Deployment Elements Reference User Feedback English | Spanish | ? View Edit History Print PDF ## 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. ## 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 on this page ## 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 iconiced 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
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 June 09, 2009, at 06:37 PM