Vector of images

Hi i have created a vector of images and i wish to display them using g.drawImage()

the problem is that it expects an actual Image object, not a object from a vector. is their a way to convert my vector objects into image objects?

Vector chips =new Vector();

chips.addElement(Image.createImage("/0.10_25x25.png"));

chips.addElement(Image.createImage("/0.20_25x25.png"));

chips.addElement(Image.createImage("/0.50_25x25.png"));

[573 byte] By [jonney69a] at [2007-11-27 10:55:32]
# 1

This is really basic Java stuff, maybe a java tutorial is in order.

You can simply cast your Vector Object to an Image.

deepspacea at 2007-7-29 11:57:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Yes,cast your vector to image

Sam_Loga at 2007-7-29 11:57:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

> Yes,cast your vector to image

No! You can cast Vector elements to Image objects, not the whole Vector.

deepspacea at 2007-7-29 11:57:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4

done! sorted. i dont need a java tutorial, i know my stuff mate its just that i dont use type casting alot and forgot about it. i usualy use Integer.toString() to converty stuff..

jonney69a at 2007-7-29 11:57:09 > top of Java-index,Java Mobility Forums,Java ME Technologies...