Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+9 votes

all other buttons work and are connected correctly but the done button does not do anything when i finish adding a movie. as far as i know i have it linked right and it has the correct fx:id but i cannot figure out why it wont do anything. when I add the code

"< Button fx:id= "doneButton" text="Done" onAction="#completeMovieAddingView" />"

to the fmxl file it gives errors. here is the fmxl code I have currently for the done button that doesnt cause errors:

    <Button fx:id="doneButton" onAction="#completeMovieAddingView" text="Done" BorderPane.alignment="CENTER">
     <BorderPane.margin>
        <Insets bottom="15.0" />
     </BorderPane.margin>
  </Button>

the movie adding controller code and other files are as the lab said

asked in CSC 305 Fall 2024 by (2k points)

1 Answer

+4 votes
 
Best answer

To debug, try adding println statements to various methods and see which one is getting called, and when.

(Good chance you created two versions of that method, both with the same name, and JavaFX us calling the other one.)

answered by (5.7k points)
selected by
...