how to change the default java icon in jframe code example Example: how to change the icon of a jframe frame.setIconImage(img);