I am doing this small application for image viewing. The user enters the filename for eg. image1.gif and it will populate a Vector
of String
and from there, I am hoping to associate it with ImageIcon
to display it on a JLabel
. I'm stuck currently as I'm totally lost now as in how to continue from there. Can you guys give me some advise or suggestion? Thanks!
Vector <String> imageDetails = new Vector <String>;
ImageIcon imageGraphic = new ImageIcon(imageDetails.toString());
imageLabel.setText(imageDetails.get(0));