import javax.mail.internet.AddressException;
import javax.swing.JPanel;
import javax.swing.JLabel;

import java.awt.Color;
import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPasswordField;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JRadioButtonMenuItem;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

import javax.swing.JRadioButton;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.SQLException;


public class Login_Panel extends JPanel {
	private JPasswordField pwdPassword;
	private JTextField txtUsername;

	/**
	 * Create the panel.
	 */
	public Login_Panel() {
		setLayout(null);
		
		JLabel lblLogin = new JLabel("Login");
		lblLogin.setForeground(Color.RED);
		lblLogin.setFont(new Font("Papyrus", Font.BOLD, 30));
		lblLogin.setBackground(new Color(238, 238, 238));
		lblLogin.setBounds(6, 6, 115, 43);
		add(lblLogin);
		
		
		
		pwdPassword = new JPasswordField();
		pwdPassword.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				pwdPassword.setText(null);
			}
		});
		pwdPassword.setText("Password");
		pwdPassword.setBounds(157, 144, 134, 28);
		add(pwdPassword);
		
		txtUsername = new JTextField();
		txtUsername.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				txtUsername.setText(null);
			}
		});
		txtUsername.setText("UserName");
		txtUsername.setBounds(157, 112, 134, 28);
		add(txtUsername);
		txtUsername.setColumns(10);
		
		JRadioButton rdbtnPatient = new JRadioButton("Patient");
		JRadioButton rdbtnDoctor = new JRadioButton("Doctor");
		
		//Doctor radioButton
		rdbtnDoctor.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				if(rdbtnPatient.isSelected() == true){
					rdbtnPatient.setSelected(false);
				}
			}
		});
		rdbtnDoctor.setBounds(157, 77, 75, 23);
		add(rdbtnDoctor);
		
		//Patient radioButton
		rdbtnPatient.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				if(rdbtnDoctor.isSelected() == true){
					rdbtnDoctor.setSelected(false);
				}
			}
		});
		rdbtnPatient.setBounds(244, 77, 75, 23);
		add(rdbtnPatient);
		
		JButton btnEnter = new JButton("Enter");
		btnEnter.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Person temp;
				try {
					temp = MDGui.db.retrievePerson(txtUsername.getText(), pwdPassword.getText());
					if(temp == null){
						JOptionPane.showMessageDialog(null, "Invalid Username or Password\nPlease try again");
					}
				} catch (AddressException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				} catch (SQLException e1) {
					// TODO Auto-generated catch block
					e1.printStackTrace();
				}
				
			}
		});
		btnEnter.setBounds(293, 143, 117, 29);
		add(btnEnter);
	}
}

@@ -2927,17 +2927,17 @@
 tBounds(
-2
+1
 93, 143,
@@ -2942,10 +2942,10 @@
 3, 1
-17
+34
 , 29
@@ -2964,13 +2964,324 @@
 Enter);%0A
+%09%09%0A%09%09// Reset password button%0A%09%09JButton btnReset = new JButton(%22Reset Password%22);%0A%09%09btnReset.addActionListener(new ActionListener() %7B%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0A%09%09%09%09setVisible(false);%0A%09%09%09%09MDGui.initializePassResetForm();%0A%09%09%09%7D%0A%09%09%7D);%0A%09%09btnReset.setBounds(193, 157, 134, 29);%0A%09%09add(btnReset);%0A
 %09%7D%0A%7D%0A

Update Login_Panel.java