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