|
SpringGUI
introduction download reference examples faq
Reference
Name
|
addCheckbox()
|
Examples
|
SpringGUI gui;
void setup() {
size(200,200);
gui = new SpringGUI(this); // initialise SpringGUI
// Create a Checkbox named "myCheckbox" at coordinates 10,10 with width 200px and height 25px...
gui.addCheckbox("myCheckbox", "I am a Checkbox", 10, 10, 200, 25);
gui.setState("myCheckbox", true); // check the Checkbox
}
|
Description
|
Creates a Checkbox element.
|
Syntax
|
gui.addCheckbox(name, text, x, y, width, height);
|
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 Checkbox.
|
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.
|
|
Returns
|
nothing
|
Related
|
getState(), setState()
addRadiobutton()
table of events
|
back to the top of the page
|
| |
| | |