public void actionPerformed(ActionEvent e) {
		
		/* ...Main window buttons... */
		
		// ...Add user button
		if (e.getActionCommand() == "Add User") {
			addUserView = new AddUserView(this);
			list = new String[2];
		}
		// ...Log in button
		if (e.getActionCommand() == "Log In") {
			System.out.println("Du tryckte på Log In");
		}
		
		/* ..."Add user-Dialog" Buttons... */
		
		// ...IP-field
		if (e.getActionCommand() == "IP") {
			JTextField ipField = (JTextField)e.getSource();
			list[0] = ipField.getText();
			ipField.transferFocus();
		}
		// ...Socket field
		if (e.getActionCommand() == "Socket") {
			JTextField socketField = (JTextField)e.getSource();
			list[1] = socketField.getText();
			socketField.transferFocus();
			
		}
		
		// ...Connect button
		if (e.getActionCommand() == "Connect") {
			// ... Connect to user
			try {
				/* For user input... remove comments...*/
	            //Socket echoSocket = new Socket(list[0], Integer.parseInt(list[1]));
				Socket clientSocket = new Socket("172.20.10.3", Integer.parseInt(list[1]));
	            addUser(new User(clientSocket));
	            mainView.addUserToView(user);
	            addUserView.dispose();
	            // Starts the user thread and initializes a chat window
	            user.setController(this);
	            user.start();
	            
			} catch(UnknownHostException err0) {
				System.err.println("Unknown Host");
			} catch (ConnectException err1) {
				System.err.println("Connection error");
			} catch (IOException err2) {
				
			}
		}
		
		// ...Cancel button
		if (e.getActionCommand() == "Cancel") {
			addUserView.dispose();
		}
		
	}