Jframe Change -Symbol

ImageIcon img = new ImageIcon(pathToFileOnDisk);
frame.setIconImage(img.getImage());
Cheerful Cormorant