SpringGUI

introduction    download    reference    examples    faq


Reference

Name

new SpringGUI()

Examples

SpringGUI gui;

void setup() {
  size(200,50); // set the size of the Applet.
  gui = new SpringGUI(this); // create a new SpringGUI instance
  gui.addButton("myButton", "I am a Button", 10, 10, 180, 20);
}

Description

Creates a new instance of SpringGUI. Using this instance, you can then start to create GUI elements or query their attributes by calling methods on your SpringGUI object. SpringGUI must be created with "this" as a parameter.

Syntax

gui = new SpringGUI(this);
This assumes that you declared a SpringGUI instance named gui before (as in the example). Note that for SpringGUI to work correctly you must also implement the method handleEvent().

Parameters

this "this" refers to your Processing Applet and by specifying it, SpringGUI will know where to add its user interface elements.


back to the top of the page


tinkering with codetools and docsscrapbookabout