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

Merge branch 'Mads_branch' into 'master'

Print message when pressing button

See merge request mesji/bacheloroppgave_2022!1
parents a85473d8 e3031133
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.
Please register or to comment