public void actionPerformed(ActionEvent e)
		{
			StringBuilder sb = new StringBuilder();
			username = usernameField.getText();
			char pw[] = passwordField.getPassword();
			for(int i = 0; i<pw.length; i++)
			{
				sb.append(pw[i]);
			}
			password = sb.toString();
			try
			{
				String url = "jdbc:mysql://localhost/Group2";
				Class.forName("com.mysql.jdbc.Driver").newInstance();
				conn = DriverManager.getConnection(url, username, password);
				System.out.println("Database connection established");
				stmt = conn.createStatement();
				Central c = new Central(conn);
				setVisible(false);
			}
			catch (Exception error) 
			{
				JOptionPane.showMessageDialog(null, "Failed Connection Attempt.");
				error.printStackTrace();
			}
		}