aspose file tools
The moose likes Beginning Java and the fly likes icon problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "icon problem" Watch "icon problem" New topic
Author

icon problem

glen li
Greenhorn

Joined: Aug 24, 2004
Posts: 19
Hi there,

I would like to show an icon on the user's desktop after they downloaded the jar file from my homepage, how should I do this? Thanks!

glen
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You could do it with a signed applet I suppose. There's no HTML/Javascript trick you can use to get access to the user's file system (beyond the browser sandbox) without the user agreeing to waive most of their browser security settings. A signed applet gives you access to the user's file system, assuming they agree to allow this when they download the applet.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
glen li
Greenhorn

Joined: Aug 24, 2004
Posts: 19
Thanks Paul,

I am still confused. The jar file I mentioned is an java application. I have the image file, but I don't know how to make it a logo for my application. Should I put it into the manifest file somewhere or what? Thanks!

glen
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Well it depends on the OS you are using, but if its Windows you can't control what icon is used with a Jar in the Jar itself. The icon to file type relationship is maintained by Windows, so you would have to change it there.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: icon problem