<p>I know the file needs to be where the getClass().getResource(filename) can find it, but I don't know where that is.</p>

<p>I'm interested both in where to put the files on the filesystem itself, and how to go about using Eclipse's functionality to set up the resources.</p>

You can either put them in the src folder alongside your classes, or you can create a new source folder for the purpose (usually called
resources
), although you'll locate them identically from code.
Then you get at them using
```
getResource("/com/x/y/foo.png")
```
.