How to get the Intellij IDEA logo on top left corner of a JFrame.

Am trying to create plugin, in which I am using a JFrame and a JFileChooser. For JFileChooser, Intellij IDEA logo is get displayed on the top let corner but for JFrame java symbol is getting displayed. How to change that to Intellij IDEA logo??

I can use the frame.setIconImage() method to set that, but I want to know is there there any specific way of doing that so that it will be same as the Intellij IDEA's logo (i.e for each version that corresponding logo to get displayed automatically) ....

Thanks in Advance..

2 comments

This should get you the icon.
IconLoader.findIcon("/icon_small.png");
The icons are located at {intellij_install_location}/lib/icons.jar
use relative paths to get them from there.

0

Thanks Joonas Vali...  Its working as expected now.. :)

0

Please sign in to leave a comment.