import java.awt.Image; import java.awt.Toolkit; import javax.swing.JFrame; public class Main { public static void main(String[] args) { JFrame frame = new JFrame(); Image icon = Toolkit.getDefaultToolkit().getImage("mercuryLogo.jpg"); frame.setIconImage(icon); frame.setVisible(true); } }
im getting frustrated here..... please help.. i cant load the icon for the jframe