Include Photos in jar file
<p>i made a Java-DataBase Program for a school that contains photos for students... when i run the program via NetBeans : it is OKEY... 
But when i make the program "double clikable application" (using Jar Bundler) and Run the application : NO Photo is showing ! ! 
(Please Note that the size of the application file is about 700 Kb only... when the photos size is more than 2 MB)... 
Then : The Question is : How to INCLUDE Photos in the "double clikable application" so that i can Run the Application with All the photos directly without using NetBeans ?? 
Thanks for any help..</p>

<p>Thanks, i Added the images directory as a source root for the project.</p>

<p>in fact, i Right clicked on the project and select the Properties item, i selected 'Sources' in the list that is on the left side of the dialog, (This will change the content of the panel on the right side of the dialog)</p>

<p>i Pressed the 'Add Folder...' button.. and selected the images folder... (An entry for the images folder is added).. Now when i made the jar file, its size became about 5 MB and not 700 KB.. this is good ... But when i double click the jar file and run the application outside the NB ... 2 cases are considered : case 1: if i put the jar in any location (on my Desktop for example) the application can NOT show the photos... case2: i must put the jar file in the same directory where the NB Project is ...in this case it is Okey ... the result is the jar file is STILL dependant of the photos folder ... what i need that EMBEDING all the photos in the jar file so it will be portable .. that means if i take this file to any other computer i can run the program with all photos without the photos folder...finally: do i need to use getClass().getResourceAsStream(file)?? and HOW to use it.. Thanks for any help...</p>
