public ViewUserLogin()
	 {
		 setTitle("Login");
		 setLayout(new GridLayout(3,2));
		 setDefaultCloseOperation(EXIT_ON_CLOSE);
		 
		 setVisible(true);
	
		 u=new JLabel("Username");
		 p=new JLabel("Password");
	
		 uname=new JTextField(20);
		 pass=new JPasswordField(20);
	
		 login=new JButton("Login");
		 cancel=new JButton("Cancel");
	
		 add(u);
		 add(uname);
	
		 add(p);
		 add(pass);
	
		 add(login);
		 add(cancel);
	
		 uname.requestFocus();
	
		 cancel.addActionListener(new ActionListener(){
		  public void actionPerformed(ActionEvent ae)
		  {
			  System.exit(0);
		  }
		 });
	
		 login.addActionListener(new ActionListener(){
              public void actionPerformed(ActionEvent ae)
              {
                  String un=uname.getText();
                  String pa=new String(pass.getPassword());

                  ClientWebService auth = new ClientWebService();
                  Boolean isAuth = false;
                  try {
                      isAuth = auth.login(un, pa);
                  } catch (SOAPException e) {
                      e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
                      JOptionPane.showMessageDialog( null, "Serveur inaccessible", 
            			      "GamePlayerXML", JOptionPane.INFORMATION_MESSAGE);
                  }

                  if(isAuth)
                  {
                       //On r�cup�re l'instance de la classe user et on lui d�finit le login du user
                       //Qui se connecte
                       String login = un;
                       User user = User.getInstance();
                       user.setLogin(login);

                       dispose();
                       ViewMainMenu vmm = new ViewMainMenu();
                       ModelMainMenu mmm = new ModelMainMenu();
                       ControllerMainMenu cmm = new ControllerMainMenu(vmm, mmm);
                   }
                  else
                  {
                	  JOptionPane.showMessageDialog( null, "Login et/ou mot de passe incorrects", 
            			      "GamePlayerXML", JOptionPane.INFORMATION_MESSAGE);
                  }
              }
         });
	
		 KeyAdapter k=new KeyAdapter(){
		  public void keyPressed(KeyEvent ke)
		  {
		   if(ke.getKeyCode()==KeyEvent.VK_ENTER)
		   login.doClick();
		  }
		 };
	
		 pass.addKeyListener(k);
		 uname.addKeyListener(k);
	
		 pack();
		 setLocationRelativeTo(null);
	 }