ciao a tutti per un immagina in un jpanel scrivo questo.
codice:
panelImage = new JPanel();
try {
image = ImageIO.read(new File("c://image.jpg"));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
lblimage = new JLabel(new ImageIcon(image));
panelImage.add(lblimage);
constraints.gridx = 2;
constraints.gridy = 1;
constraints.gridwidth = 10;
constraints.gridheight = 1;
constraints.weightx = constraints.weighty = 1.0;
grid.setConstraints(panelImage, constraints);
poi con un evento click vorrei caricare un'altra immagine nello stesso jpanel ma non mi carica niente 
per caricare un'altra immagine scrivo questo cod:
codice:
panelImage = new JPanel();
try {
image = ImageIO.read(new File("c://image2.jpg"));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
lblimage = new JLabel(new ImageIcon(image));
panelImage.add(lblimage);
ma non fa nulla!!! come mai?? 

help!!