Simply right-click on your project directory (the very top folder),
then select "New > Directory". Specify a name such as "resources".
(optional) Once the folder is generated then right-click "resources" directory, then select "New > Directory" and create an "images" directory.
Drag-and-drop your image file into the "images" or "resources"
folder you just created.
Reference your newly added project file with code File myFile = new File("./resources/images/newfile.txt");