private void eventManager()
	{
		
		/*
		 * Add an action (upload file) to double click on selected item
		 */
		MouseListener mouseListener = new MouseAdapter() 
		{
		    public void mouseClicked(MouseEvent e) 
		    {
		        if (e.getClickCount() == 2) 
		        /* Double Click*/
		        {
		        	if( !alreadyUploading )
		        	{
				           final Peer l_selectedPeer = (Peer) peerList.getSelectedValue();
				           
				           if( l_selectedPeer == null)
				        	   return;
				           
				           new Thread( new Runnable()
				           {
				        		   public void run()
				        		   {
				        			   try 
						        	   {
				        				   File l_selectedFile = UserInteract.askfile();
				        		           if( l_selectedFile != null)
				        		           {
				        		        	   alreadyUploading = true;
				        		        	   controller.sendAFile(l_selectedPeer, l_selectedFile);
				        		        	   alreadyUploading = false;
				        		           }
						        	   } catch (UnknownHostException e1) {
										// TODO Auto-generated catch block
						        		   Logger.exception(e1.toString());
						        	   } catch (IOException e1) 
						        	   {
										// TODO Auto-generated catch block
						        		   Logger.exception(e1.toString());
						        	   }	
				        		   }
				        	   }).start();
				        	   
				    }
		        	else
		        	{
		        		UserInteract.error("You can only perform one download at a time...");
		        	}
		        }
		        
		       }
		};
		peerList.addMouseListener(mouseListener);
		
		/*
		 * Add an actionListener to hide button
		 */
		
		hideButton.addActionListener( new ActionListener()
		{
			@Override
			public void actionPerformed(ActionEvent arg0) 
			{
				// TODO Auto-generated method stub
				hideWindow();
			}	
		});
		
	}