public void actionPerformed(ActionEvent event){
				
				//set string equal to nothing in it.
				String string = "";
				
				//so basically we do here is we look to see if anyone typed
				//Anything into any of these text boxes and hits enter, we want to
				//set string equal to field (whatever one you entered in), and what you entered.
				//get action command returns strings of whatever is typed in that is associated with
				//this action.
				
				//event.getSource just finds the location of where the action happened.
				if(event.getSource() == text1)
					string = String.format("field 1: %s", event.getActionCommand());
				else if(event.getSource() == text2)
					string = String.format("field 2: %s", event.getActionCommand());
				else if(event.getSource() == text3)
					string = String.format("field 3: %s", event.getActionCommand());
				else if(event.getSource() == passwordField)
					string = String.format("password field is: %s", event.getActionCommand());
				
				//prints everything after action is completed.
				//first argument is the positioning, and second is what you want it to print.
				JOptionPane.showMessageDialog(null, string);
			}