The Class argument is the class whose class loader will be asked to locate the file (see
getResource Method Detail in Class api). If it is simply the enclosing class you can use the keyword
this. If called from a static context you will need to use the
MyClass.class form of class reference. If called from within an inner class you can use a member variable reference created at construction.
See the tutorial page
How to Use Icons, especialy the section Loading Images Using getResource.