Skip to content
Snippets Groups Projects
Commit e3031133 authored by Mads Greni Arnesen's avatar Mads Greni Arnesen
Browse files

Print message when pressing button

parent a85473d8
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@ public class Main extends Application {
// Creates a button
button = new Button();
button.setText("Click me");
button.setOnAction(e->System.out.println("Button was clicked"));
// Creates a stackpane, attaches the button to the
StackPane layout = new StackPane();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment