Scratch for Java

Button::whenPressed()

Called when the button is pressed. Override it with what the button does.

Examples

View on GitHub

Syntax

Java

.whenPressed()

Return

void

whenPressed()

Create Shareable URL

Select Sections