public void actionPerformed(ActionEvent e) {
		                        
		                        loginDlg.setVisible(true);
		                        // if logon successfully
		                        if(loginDlg.isSucceeded()){

		                        	frame1.dispose();
		                        	JFrame frame = new MainFrame("Prison Database", loginDlg.getConnection(), loginDlg.getStatement());
		            				frame.setSize(1500,740);
		            				frame.setLocationRelativeTo(null);
		            				frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		            				frame.setVisible(true);
		                        }
		                    }