public void keyPressed(KeyEvent e)
		{
			if( e.getKeyCode() == KeyEvent.VK_ENTER )
			{
				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();
					new Central(conn);
					setVisible(false);
				}
				catch (Exception error) 
				{
					JOptionPane.showMessageDialog(null, "Failed Connection Attempt.");
					error.printStackTrace();
				}
			}
		}