File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing desktop icon for Javaw shortcut

 
Carey Brown
Ranch Hand
Pie
Posts: 1052
7
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been Googling changing icons for Java programs in Windows and all I've found is how to change the title-bar icon in a swing program. I've got a desktop shortcut which executes a Java program via javaw.exe and I want to create a new icon for it. I know you can right-click on the shortcut and select "change icon", but it appears that you can only change the icon to another icon found in another .exe file. I want to create my own icon from scratch. This is either dirt simple and I'm missing it or Windows won't let me do it. Ideas anyone?

Thanks,
Carey
 
Paul Clapham
Sheriff
Pie
Posts: 20161
23
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that on my desktop on my home computer, there's a shortcut which runs a Java program and which displays an icon which I'm pretty sure wasn't in any executable. But I created that shortcut several years ago so I don't remember the details. I'm pretty sure it was dirt simple though. I will have a look when I get home.

Anyway this isn't a Java question ("How do I configure a Windows shortcut to have an icon of my choice") so I'm going to move it to a more suitable forum.
 
Jan Cumps
Bartender
Posts: 2575
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a bunch of nice icons to be found in some DLLs, like "%SystemRoot%\system32\SHELL32.dll"
You can also generate a .ico file yourself. That can be used a a pictogram too.
Free .ico generators and converters are available on the web.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a number of locations on the web that provide free sets of icons. You can also find instructions on creating icons using Photoshop.
 
Paul Clapham
Sheriff
Pie
Posts: 20161
23
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:I know that on my desktop on my home computer, there's a shortcut which runs a Java program and which displays an icon which I'm pretty sure wasn't in any executable.


Yes, it's as I suspected. The shortcut I was talking about just contains a reference to an ordinary icon file (an image file with extension .ICO). So I guess it is dirt simple after all. Although you do have to have an icon file to point at. I don't believe you can use a GIF or a PNG or anything like that.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic