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

+1 vote

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 ago in CSC 305 Fall 2024 by (227 points)

1 Answer

+1 vote

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

answered ago by (629 points)
...