Affichage d'une image dans un JPanel - Java - Programmation
Marsh Posté le 12-11-2002 à 20:09:31
passe ton image dans un JLabel d'abord 
 
tu le cré ainsi : 
 
ImageIcon i = new ImageIcon(le_chemin_complet_de_limage); 
JLabel photo = new JLabel(i) 
 
et ainsi tu peut l'ajouter a ta JFrame en ajoutant le JLabel 
 
tiens monsieur
Marsh Posté le 12-11-2002 à 19:00:37
Salut !
Comment affiche-t-on une image dans un JPanel ???
Est-ce avec la méthode ImageIcon ??? si oui comment l'utilise-t-on ???
Merci d'avance...