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

+5 votes

While making a function for uploading the image in Lab1, Part B; I have added a try/catch statement in the method with a FileNotFound Exception(), however IntelliJ is requiring me to add another try/catch statement in the start method after I create a button for the image Uploader. Is there a way to avoid that?

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

1 Answer

+4 votes

The way I did it was through FileChooser. You just have to add extension filters and add a file object.

answered by (718 points)
...