package fr.tcpmfa.display;

import java.awt.BorderLayout;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class MapPanel {
 private Image background;

 public void setBackground(Image Image){

 }

}



@@ -78,16 +78,107 @@
 Image;%0D%0A
+import java.awt.image.BufferedImage;%0D%0Aimport java.io.File;%0D%0A%0D%0Aimport javax.imageio.ImageIO;
 %0D%0Aimport
@@ -282,17 +282,34 @@
 apPanel 
-%7B
+extends JPanel%7B%0D%0A%09
 %0D%0A priva
@@ -332,17 +332,16 @@
 und;%0D%0A%0D%0A
- 
 public v
@@ -348,11 +348,8 @@
 oid 
-set
 Back
@@ -359,34 +359,405 @@
 und(
-Image Image)%7B%0D%0A%0D%0A 
+)%7B%0D%0A%09if (ID_map = 1)%7B%0D%0A%09%09%09JLabel image = new JLabel( new ImageIcon(%22Images/Map1F.png%22));%0D%0A%09%7D%0D%0A%09else %7B%0D%0A%09if (ID_map = 2)%7B%0D%0A%09%09JLabel image = new JLabel( new ImageIcon(%22Images/Map2F.png%22));%0D%0A%09else %7B%0D%0A%09%09JLabel image1 = new JLabel( new ImageIcon(%22Images/Map3F.png%22));%0D%0A%09%09%09
 %7D%0D%0A
+%09%7D
 %0D%0A
+%09
 %7D%0D%0A
-%0D%0A
+%09%0D%0A%7D%0D%0A%7D%0D%0A/*%0D%0A **Affiche MAP 1 quand ID_map = 1%0D%0A **Affiche MAP 2 quand ID_map = 2%0D%0A **Affiche MAP 3 quand ID_map = 3%0D%0A */
 %0D%0A

Update Jpanel MapPanel