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

+11 votes

I'm figured out why it didn't allowed me to exit the adding movie window. It's because the onAction id don't know which method to navigate to as there are two methods named "completeMovieAddingView". I think I have made a mistake while copying the Show Sample Skeleton Code for completeMovieAddingView. Does anyone know how can I fix it?
*P/S: I might have been wrong at F1 too, what does it mean to add the code at the top of completeMovieAddingView(), I can't seem to add them outside the method, it always give me error in the ".add(newMovie)" saying it cannot resolve symbol "add"
I've attached a link to the pictures of parts of my code, please check them out. Thanks yall!
https://docs.google.com/document/d/1HzeiFgKUEB4SIbiZNzuIqCmq_3UQ0ftloRFLbduq_g8/edit?usp=sharing

asked in CSC305 Fall 2023 by (617 points)

1 Answer

+3 votes

You should have only one copy of the event handling method completeMovieAddingView(). It should contain all of the code you currently have in both methods.

answered by (508 points)
...