Originally posted by amit bharwani:
i want to make an icon for my application , so that i shuld b able to insall it on any system, plz reply
Your question is not clear. If you want a platform indpendent java installer you can take a look at
http://www.install4j.com or
http://www.izforge.com/izpack/ If you want an _icon_ for your application to show up in the Windows explorer or the OS X finder that's a different question: On Windows I suggest launch4j.sf.net and to use the 'Jar Bundler' on OS X (google for "application bundle" and Java on the apple homepage if you don't have a Mac). This will assure that your jar is packaged (in OS X) or has an additional launcher (on Windows) which shows an icon and also assures that your java app can be identified in the task manager with a unique name (instead of java.exe or javaw.exe on Windows). I don't know a Linux solution for that. If you want to have an icon _inside_ your jar so that your application will have a unique icon in the windows task bar or when Alt-Tab-switching between programs you'll have to add this icon extra. One possible way is:
setIconImage(new ImageIcon(getClass().getResource("/resources/Icon.gif")).getImage());
(assuming the Icon.gif file is in the resources directory).
To the moderators... shouldn't this be a FAQ? :-)
Best regards
Peter