Are you sure that the path/url to your image file is correct? Do you use the getResource method of the class object? Note that a leading slash indicates an absolute path (otherwise its relative to the package of the class!)