public void openFile() throws Exception {
		if (fileChooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
			DrawInternalFrame internalFrame = new DrawInternalFrame(this);
			File file = fileChooser.getSelectedFile();
			if (file.getName().endsWith(".png")
					|| file.getName().endsWith(".PNG")) {
				BufferedImage img;
				try {
					img = ImageIO.read(file);
					ImageIcon icon = new ImageIcon(img);
					// internalFrame.getDrawPanel().setIcon();
					Dimension imageSize = new Dimension(icon.getIconWidth(),
							icon.getIconHeight());
					internalFrame.getDrawPanel().setPreferredSize(imageSize);
					internalFrame.getDrawPanel().setImage(img);
				} catch (IOException e) {
				}
				internalFrame.setTitle(file.getName());
			} else {
				JOptionPane.showMessageDialog(this,
						"L'extension de l'image doit �tre de type .png.");
				throw new Exception("L'extension de l'image est mauvaise.");
			}
		}
	}