ImageIcon icon = new ImageIcon("C:Documents and SettingsDesktopfavicon(1).ico"); frame.setIconImage(icon.getImage());