Im having a problem with the ImageIcon.

When i run it says cannot find symbol

Can anyone suggest a way to change it? or maybe tell what to add or change?

Java Code:

import javax.swing.JOptionPane;

public class CLau2{

public static void main(String args[]){

String Firstnumber,Secondnumber,Thirdnumber,c;

int number1,number2,number3,addition,difference,multip lication;

ImageIcon welcome = new ImageIcon("C:\\DSE\\welcome.gif");

ImageIcon wrong = new ImageIcon("C:\\DSE\\wrong.gif");

ImageIcon smily = new ImageIcon("C:\\DSE\\smily.gif");

JOptionPane.showMessageDialog(null,"Start the Lau Calculator System","Calculator System",JOptionPane.INFORMATION_MESSAGE, welcome);

Firstnumber = JOptionPane.showInputDialog("Enter First Number.");

Secondnumber = JOptionPane.showInputDialog("Enter Second Number.");

Thirdnumber = JOptionPane.showInputDialog("Enter Third Number.");

number1 = Integer.parseInt(Firstnumber);

number2 = Integer.parseInt(Secondnumber);

number3 = Integer.parseInt(Thirdnumber);

c=JOptionPane.showInputDialog("Calculator System"+"\n"+"[A] Addition"+"\n"+"[B] Difference"

+"\n"+"[C] Multiplication"+"\n"+"[D] Odd/Even Number");

if (c.equals("A")||c.equals("a")){

addition = number1+number2+number3;

JOptionPane.showMessageDialog(null,"The sum of 3 numbers is "+addition,"Sum",JOptionPane.INFORMATION_MESSAGE,s mily);

}else if(c.equals("B")||c.equals("b")){

difference=number1-number2-number3;

JOptionPane.showMessageDialog(null,"The difference of 3 numbers is "+difference,"Difference",JOptionPane.INFORMATION_ MESSAGE,smily);

}else if(c.equals("C")||c.equals("c")){

multiplication=number1*number2*number3;

JOptionPane.showMessageDialog(null,"The multiplication of 3 numbers is "+multiplication,"Multiplication",JOptionPane.INFO RMATION_MESSAGE,smily);

}else if(c.equals("D")||c.equals("d")){

if((number1%2)==0){

JOptionPane.showMessageDialog(null, "First number is an even number.","Even",JOptionPane.INFORMATION_MESSAGE,sm ily);

}else{

JOptionPane.showMessageDialog(null, "First number is an odd number.","Odd",JOptionPane.INFORMATION_MESSAGE,smi ly);

}

if((number2%2)==0){

JOptionPane.showMessageDialog(null, "Second number is an even number.","Even",JOptionPane.INFORMATION_MESSAGE,sm ily);

}else{

JOptionPane.showMessageDialog(null, "Second number is an odd number.","Odd",JOptionPane.INFORMATION_MESSAGE,smi ly);

}

if((number3%2)==0){

JOptionPane.showMessageDialog(null, "Third number is an even number.","Even",JOptionPane.INFORMATION_MESSAGE,sm ily);

}else{

JOptionPane.showMessageDialog(null, "Third number is an odd number.","Odd",JOptionPane.INFORMATION_MESSAGE,smi ly);

}

}else{

JOptionPane.showMessageDialog(null,"Wrong message entered!","Error",JOptionPane.ERROR_MESSAGE,wrong) ;

}

System.exit(0);

}

}

Error code example:

symbol: class ImageIcon

location: class CLau2

CLau2.java:11 error: cannot find symbol

ImageIcon wrong = new ImageIcon ("C:\\DSE\\smily.gif");

Please help XD!