switch(count) {
case 0:
println("Zero"); // Does not execute
rect(25, 25, 50, 50);
break;
case 1:
println("One"); // Prints "One"
rect(25, 25, 80, 80);
break;
case 2:
println("two"); // Prints "One"
rect(25, 25, 100, 100);
break;
case 3:
println("three"); // Prints "One"
rect(25, 25, 150, 150);
break;
}
}
It would be realy nice if someone could fix me that !
is it possible to build a button that does on every click something new what i define before ?
Example:
I made a new class for the button where the buttons settings are defined. (a number a color and some further stuff).
Now on the interface i want only one Button in the middle of the screen, the color and the number of that Button should change on every click.
For Example click1(red, number1), click2(green,number2),...click5(white,number5) after 5 clicks i can disappear.
Would be nice if you can help me with an example !