I am having issues with adding an Image to a screen, I have the following code:
try {
Image cima = Image.createImage("/resources/cross.png");
} catch (IOException ex){
System.out.println("ERROR");
}
However it always hits up the exception. I don’t know what’s wrong as I already put in the image in the correct folder

Also would it be possible to combine two layout settings? Say I want top right corner? I want to combine two layout..is this possible?
UPDATE:
With regards to the layout I want to do something like:
form.append(new ImageItem("Top Right", cima, ImageItem.LAYOUT_TOP, null));
but this only gives me the image on TOP.
Obviously the URL is wrong. See my answer to this related question:
As for your second question, it is possible to combine multiple layout managers, although each container is limited to exactly one. For more information, see Laying Out Components Within a Container.
And what exactly do you want to set in the top right corner? I’m sure this can be done using a single layout manager.As for placing the image in the top-right corner of the container, there are many ways to achieve this. One way is to simply use a
JLabelas seen in the answer provided by @camickr in this question.