Reputation: 3724
Is it possible to change the coffee cup icon that is displayed when switching applications (command+tab) on a mac or (alt+tab) on windows?
I am not referring to the icon in the Jframe window border.
Upvotes: 1
Views: 1304
Reputation: 3724
I ended up exporting the jar as a Mac OS X bundle. It is an option in eclipse under other. As you do that it will prompt you to pick an icns file for an icon that is used for the program bundle and dock icon.
Upvotes: 0
Reputation: 483
I am using Windows 8 and My JFrame gives the Icon I defined in the contructor, here is the code and the pic of the result it shows,
this.setIconImage(new javax.swing.ImageIcon("images\\icon.png").getImage());
This line is placed in constructor of the class which extends JFrame, Maybe it does'nt help you but It's working with me, Remember the URl I gave for the Image is relative. Here is the Image of the result.
Upvotes: 2