r/learnjava • u/tuckoguy • Dec 16 '14
How to use this command?
this.setIconImage(); Based on what I have read, I assume that this is the command to change the icon in the top left corner of the JFrame. If so, what do I put in the parenthesis? and where do I put the image? Also what size image would it have to be?
Thanks
0
Upvotes
2
u/desrtfx Dec 16 '14
Short googling brought me to this link: http://www.java2s.com/Code/JavaAPI/javax.swing/JFramesetIconImageImageimage.htm
or
This: http://java-demos.blogspot.co.at/2013/10/3-ways-to-set-icon-image-for-jframe.html