Adding a Package for the Image
When you use images or other resources in an application, typically you create a separate Java package for the resources. On your local filesystem, a package corresponds with a folder.
To create a package for the image:
In the Projects window, right-click the org.me.myimageapp node and choose New > Java Package.
In the New Package wizard, add .resources to org.me.myimageapp so that the new package is called org.me.myimageapp.resources.
Click Finish.
In the Projects window, you should see the image appear within the org.me.myimageapp.resources package.