Please tell me what is wrong
import java.awt.*;
import java.applet.*;
class CardImageextends Component{
private Image image;
publicvoid CardPicture(Image i){
setSize(71,96);
image = i;
}
publicvoid setPicture(Image i){
image = i;
}
publicvoid paint(Graphics g){
g.drawImage(image,0,0,this);
}
}
publicclass Pokerextends Applet{
publicvoid init(){
setLayout(new FlowLayout());
Image image = getImage(getCodeBase(),"AS.GIF");
CardImage card =new CardImage(image);
add(card);
}
}
what is wrong with this code?
it is supposet to display an picture of the Ace of Spades
i get the following error:
C:\Documents and Settings\Administrator\My Documents\GUI development\Poker\Poker.java:22: cannot resolve symbol
symbol : constructor CardImage (java.awt.Image)
location: class CardImage
CardImage card = new CardImage(image);
^
1 error
Tool completed with exit code 1

