-1

I am just starting out with JavaFX, and I am trying to build a simple application with a label, text field and button which, when clicked, sets the label's value to that of the text field's. Everything was going well until I connected the controller to the Main file. Here's my code: Main.java

I have tried multiple answers found on StackOverflow, but all that I have found were from 2 years ago and did not make any positive effect on my code.

EDIT: Stack trace here:

  • 1
    no screenshots of plain text please – kleopatra May 16 '22 at 06:21
  • You're getting an exception that says the resource name given to the `Image` constructor is not valid (the resource does not exist at that location). It's being thrown in the `start` method, so I don't think it's related to FXML. – Slaw May 16 '22 at 06:41

0 Answers0