Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Changing desktop icon for Javaw shortcut

 
Carey Brown
Ranch Hand
Posts: 1540
18
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • 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
Posts: 21137
32
Eclipse IDE Firefox Browser MySQL Database
  • 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: 2588
11
C++ Linux Netbeans IDE
  • 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
  • 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
Posts: 21137
32
Eclipse IDE Firefox Browser MySQL Database
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic