SpringGUI

introduction    download    reference    examples    faq


Reference

Name

setSize()

Examples

SpringGUI gui;
void setup() {
  size(200,200);
  gui = new SpringGUI(this); // initialise SpringGUI
  // Create a button named "myButton" at coordinates 10,10 with width 200px and height 25px...
  gui.addButton("myButton", "I am a button", 10, 10, 200, 25);
  gui.setSize("myButton", 150, 50); // resize the button to 150, 50.
}

Description

Changes a GUI element's position.

Syntax

gui.setSize(name, width, height);

Parameters

String name The name of the element to change.
int width, height the new size for the element.

Returns

true if the element could be found.


back to the top of the page


tinkering with codetools and docsscrapbookabout