D
Dimitris \(GIS\)
I have a frame with
a awt.List and a awt.Canvas
I want by selecting diferent elements from the list to change my canvas
picture.
How can I do it?
I try this but it gives me NullPointerException:
if(simList.getSelectedIndex()==0){
ImageCanvas ic=new ImageCanvas("image.jpg");
simPicture.update(ic);
}
a awt.List and a awt.Canvas
I want by selecting diferent elements from the list to change my canvas
picture.
How can I do it?
I try this but it gives me NullPointerException:
if(simList.getSelectedIndex()==0){
ImageCanvas ic=new ImageCanvas("image.jpg");
simPicture.update(ic);
}