Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Changing desktop icon for Javaw shortcut

 
Saloon Keeper
Posts: 8943
76
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 26966
84
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 2660
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 26966
84
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic