How to Link a .fxml file to a Java Controller Class
Linking the GUI code with functional code that “does stuff”

So you have a Java class, and you want it to “do stuff” basically when the user clicks on stuff and hits the enter key and what not.
Here’s how you link them together.