I'm trying to add an image into my GUI, but im having a "VariableDeclaratorId expected after this token" message. I've looked up how to fix it, but I can't figure out how to fix my problem.
Here is the code:
frame.setIconImage= (
new ImageIcon(getClass().getResource("tictactoe.gif")).getImage());
I am getting the error on the setIconImage.
I'm doing this on eclipse.