convet ImageIcon to Icon

hi, i am wondering how i can convert ImageIcon to Icon
[61 byte] By [englandRulesa] at [2007-11-26 14:03:49]
# 1

C:\Documents and Settings\Tang\Desktop\Chess.java:487: incompatible types

found: javax.swing.Icon

required: javax.swing.ImageIcon

ImageIcon newIcon = board[uRow][uCol].getIcon();

^

1 error

i get that msg. nyone noe how to fix it?

ImageIcon newIcon = board[uRow][uCol].getIcon();

englandRulesa at 2007-7-8 1:47:23 > top of Java-index,Desktop,Core GUI APIs...
# 2
deleted - crosspostedMessage was edited by: Michael_Dunn
Michael_Dunna at 2007-7-8 1:47:23 > top of Java-index,Desktop,Core GUI APIs...
# 3
You have to do a cast to ImageIcon because getIcon should return an Icon.ImageIcon newIcon = (ImageIcon) board[uRow][uCol].getIcon();
paxtora at 2007-7-8 1:47:23 > top of Java-index,Desktop,Core GUI APIs...