|
SpringGUI
introduction download reference examples faq
Reference
Name
|
setPosition()
|
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.setPosition("myButton", 10, 100); // reposition the button to 10, 100.
}
|
Description
|
Changes a GUI element's position.
|
Syntax
|
gui.setPosition(name, x, y);
|
Parameters
|
String name
|
The name of the element to change.
|
int x,y
|
the new position for the element.
|
|
Returns
|
true if the element could be found.
|
back to the top of the page
|
| |
| | |