Element: TextArea.

Icon: 

Text: A text area where to print.

Description: A TextArea is a basic element used to display text messages according to the logic of the simulation. The view usually contains only one element of this type, which displays all the output of the program produced by calls to the method _println( ) (and its variants). 

The image below was generated with the sentence: _println ("Hello, World");

Use the sentence _clearView( ), or just initialize the simulation, to clear the display of this element.(Note: Using the method _println () during the initialization of the simulation is useless, since the corresponding message will be cleared because of the initialization of the view.)

Table of properties

Name Description Values accepted
Main
Títle The text displayed in the header of this element. Any constant or variable of type String.
Graphical Aspect
Size The size of the element. An Object variable of the class java.awt.Dimension or the integer values for the width and the height, respectively, separated by a comma.
Background The color used for the background of the element. An Object variable of the class java.awt.Color or one of the predefined colors: black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, yellow.

A color can also be specified providing its integer RGB coordinates (between 0 and 255), plus an optional transparency coordinate.

The default value is decided by the system.

Foreground The color used for the text displayed by the element. See the values for the Background property.
Font The font used for the text displayed by the element. An Object variable of the class java.awt.Font or a set of family, style and size, separated by commas. The style must be one of  plain, bold, italic, bold | italic. Example: Monospaced,italic,18.

The default value is decided by the system.

Tooltip The text displayed when the cursor lingers on top of the element. Any constant or variable of type String.