SpringGUI

introduction    download    reference    examples    faq


Reference

Name

addTextArea()

Examples

SpringGUI gui;
void setup() {
  size(200,200);
  gui = new SpringGUI(this); // initialise SpringGUI
  // Create a TextArea named "myTextArea" at coordinates 10,10 with width 200px and height 25px...
  gui.addTextArea("myTextArea", "I am a TextArea", 10, 10, 200, 25);
}

Description

Creates a multi-line TextArea element.

Syntax

gui.addTextArea(name, text, x, y, width, height);
gui.addTextArea(name, text, x, y, width, height, scrollBarPolicy);

Parameters

String name The name of the element. You can query and change the element's attributes later on by referring to this name.
String text The text to display on the TextArea.
int x, int y The x and y coordinates of the element's top left point.
int width, int height The size of the element.
int scrollBarPolicy Specifies whether the TextArea will have horizontal and/or vertical scrollbars. Please use one of the following constants: SCROLLBARS_BOTH, SCROLLBARS_VERTICAL_ONLY, SCROLLBARS_HORIZONTAL_ONLY or SCROLLBARS_NONE. If you leave out this parameter, the TextArea will have a vertical scrollbar.

Returns

nothing

Related

addTextField()
table of events


back to the top of the page


tinkering with codetools and docsscrapbookabout