Aides correctives affichage image
Bonjour,
Quel code plus juste que le mien affichera mon damier?
merci.
Code:
1 2 3 4 5 6 7 8 9 10
|
public class Dame_007{
public static void main (String[]args){
JLabel D=new JLabel("",ImageIcon")),("C:\Documents and Settings\JEAN-MICHEL\Mes documents\damier.jpeg",2));
D.setBounds(50,50,100,100);
add(L);
}
} |
message error:
C:\Documents and Settings\JEAN-MICHEL\Mes documents\Dame_007.java:3: ')' expected
JLabel D=new JLabel("",ImageIcon")),("C:\Documents and Settings\JEAN-MICHEL\Mes documents\damier.jpeg",2));
^
C:\Documents and Settings\JEAN-MICHEL\Mes documents\Dame_007.java:3: illegal character: \92
JLabel D=new JLabel("",ImageIcon")),("C:\Documents and Settings\JEAN-MICHEL\Mes documents\damier.jpeg",2));
^
C:\Documents and Settings\JEAN-MICHEL\Mes documents\Dame_007.java:3: illegal character: \92
JLabel D=new JLabel("",ImageIcon")),("C:\Documents and Settings\JEAN-MICHEL\Mes documents\damier.jpeg",2));
^