public WinWait(String mess, final int time) {
		super(Game.getInstance(), true);
		
		//setModal(true);
		setBounds(Game.getInstance().getBounds());
		setResizable(false);
		setUndecorated(true);

		// Fond d'écran
		JLabel background = new JLabel();
		background.setIcon(Game.BACKGROUND);
		FlowLayout layBack = new FlowLayout();
		layBack.setVgap(0);
		background.setLayout(layBack);
		

		
		JPanel infoTemp = new JPanel();
		infoTemp.setBounds(0, 0, 1274, 740);
		infoTemp.setPreferredSize(new Dimension(1274, 740));
		infoTemp.setOpaque(false);
		
		JLabel labInfoTemp = new JLabel("<html>" + mess.replaceAll("\n", "<br>") + "</html>");
		labInfoTemp.setForeground(Color.WHITE);
		labInfoTemp.setFont(new Font("sherif", 0, 60));
		labInfoTemp.setVerticalAlignment(JLabel.CENTER);
		labInfoTemp.setHorizontalAlignment(JLabel.CENTER);
		labInfoTemp.setPreferredSize(new Dimension(1274, 740));
		labInfoTemp.setOpaque(false);
		
		infoTemp.add(labInfoTemp);

		setContentPane(background);
		
		getContentPane().add(infoTemp);
		getContentPane().addMouseListener(this);
		
		final JDialog that = this;
		
		/*SwingUtilities.invokeLater(new Runnable(){
			public void run() {
				try {
					Thread.sleep(2000);
				}
				catch (Exception e) {}
				
				that.setVisible(false);
			}
		});*/
		
		new Thread(new Runnable(){
			public void run() {
				try {
					Thread.sleep(time);
				}
				catch (Exception e) {}
				
				that.setVisible(false);
			}
		}).start();
		
		
		setVisible(true);
	}