posted 20 years ago
Thank you very much Matthew! But i still dont get it!!!
What i do is:
Image logo=null;
try{
logo= Image.createImage("logo1p.png");
}catch (IOException e)
{ System.out.println("error"+e);}
ImageItem logoItem=new ImageItem("",logo,ImageItem.LAYOUT_DEFAULT,"");
pantallaPresentacion.append(logoItem);
AND HERE IT IS WHAT I GET AS RESPONSE:
errorjava.io.IOException
DEFAULT-> xpos=2 imgWidth:0 labelWidth:0
Used w=4 xpos=2
DEFAULT-> xpos=2 imgWidth:0 labelWidth:0
Used w=4 xpos=2
DEFAULT-> xpos=2 imgWidth:0 labelWidth:0
Used w=4 xpos=2
I THINK THAT IT CANT FIND THE IMAGE (I PUT logo1p.png IN THE SAME FOLDER THAN THE CLASS IS)
COULD YOU HELP ME WITH THIS?
THANKS AGAIN FOR YOUR HELP! AND SORRY IF THIS QUESTION ARE TOO SILLY!