Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Java application icon?

Tags:

java

icons

Does anyone know how to change the default java application app icon? I am using a mac if it makes a difference. Any ideas are good!

like image 300
William Reed Avatar asked Aug 12 '12 15:08

William Reed


People also ask

How do I change the Java Swing app icon?

How to change TitleBar icon in Java AWT and Swing. The setIconImage() method of Frame class is used to change the icon of Frame or Window. It changes the icon which is displayed at the left side of Frame or Window. The Toolkit class is used to get instance of Image class in AWT and Swing.

How do I change the icon of a jar file?

jar and then you can change it: Right button >> Properties >> Change Icon. p.s. The icon file should be a . ico, so you can use many site for conversion in . ico extension if your image has got another one.

How do I get the Java icon?

Click on the Start button and then click on the Control Panel option. In the Control Panel Search enter Java Control Panel. Click on the Java icon to open the Java Control Panel.


1 Answers

You can use JFrame.setIconImage.

Here is an example.

Haven't seen any issues on the mac.

like image 161
Reimeus Avatar answered Oct 26 '22 08:10

Reimeus