Java JFrame change Icon

I have learn about GUI programming using java this week. I have created a simple window (using JFrame) and get the default icon in titlebar is a default java icon. But, I dont like this default icon image and want to change with another image.

This is a complete code how to change JFrame icon image

This is the Program Window result after JFrame change the icon

jframechangeiconDownload the complete source code how JFrame change the icon below.

Source code : jframeChangeIcon.zip

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.