aboutsummaryrefslogtreecommitdiff
path: root/src/com.example.portfolio2/com/example/portfolio2/HelloController.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com.example.portfolio2/com/example/portfolio2/HelloController.java')
-rw-r--r--src/com.example.portfolio2/com/example/portfolio2/HelloController.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com.example.portfolio2/com/example/portfolio2/HelloController.java b/src/com.example.portfolio2/com/example/portfolio2/HelloController.java
new file mode 100644
index 0000000..b2abf23
--- /dev/null
+++ b/src/com.example.portfolio2/com/example/portfolio2/HelloController.java
@@ -0,0 +1,14 @@
+package com.example.portfolio2;
+
+import javafx.fxml.FXML;
+import javafx.scene.control.Label;
+
+public class HelloController {
+ @FXML
+ private Label welcomeText;
+
+ @FXML
+ protected void onHelloButtonClick() {
+ welcomeText.setText("Welcome to JavaFX Application!");
+ }
+} \ No newline at end of file