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

+13 votes

After copying the skeleton code from Scene Builder (step E4), my "Add Movie" button isn't doing anything. I have completed through step E9 and realized the issue while testing. Anyone know how to make it work?

asked in CSC305 Fall 2022 by (1 point)

3 Answers

+9 votes
 
Best answer

Make sure you have commented out or deleted the empty duplicate switchToMovieListScreen() that was generated by the Scene Builder skeleton. It should work then.

answered by (1 point)
selected by
+3

That worked! Thanks!

+8 votes

There's a chance that you forgot to change some of the names from the beginning parts of the lab. That would also prevent the button from working.

answered by (1 point)
+8 votes

We had the same problem but the problem was that we forgot to change the setRoot argument of the swithToAddMovieScreen method in the MovieListController class to "AddMovie" instead of "secondary".

answered by (1 point)
...