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

+21 votes
asked in CSC305 Fall 2022 by (1 point)
+4

Big thanks for asking this question! The Avocets were just wondering about this yesterday!

1 Answer

+14 votes

For "save as", see my sample code in MovieTracker.

For save, you'll need to keep track of the previously saved file name, so you can just save it again with the same name instead of prompting the user with a filechooser.

If they have not saved already before, then just have the save method call the "save as" method.

answered by (5.7k points)
...