private void submitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_submitActionPerformed
if(!stu_prof.isSelected() && !fac_prof.isSelected() && !clr_prof.isSelected())
{
JOptionPane.showMessageDialog(this, "Please make a selection");
}
else if(stu_prof.isSelected())
{
  String i= stu_roll.getText();
         ArrayList<String> ar = new MemberDB().getStuRoll();
         if(!ar.contains(i))
         {
         JOptionPane.showMessageDialog(this, "student does not exist");
         }
         else{
             this.setVisible(false);
         JFrame f=new StudentProfile(stu_roll.getText());
         f.setVisible(true);
         }
}


else if(fac_prof.isSelected())
{
    String name=fac_name.getText();
   ArrayList<String> ar=new MemberDB().getfac();
   if(!ar.contains(name))
   {
   JOptionPane.showMessageDialog(this,"faculty odes not exist");
   }
   else{
       this.setVisible(false);
   JFrame f=new FacultyProfile();
   f.setVisible(true);
   }
}

else if(clr_prof.isSelected())
{
    String name=clr_name.getText();
    ArrayList<String> ar=new MemberDB().getclk();
   if(!ar.contains(name))
   {
   JOptionPane.showMessageDialog(this,"clerk odes not exist");
   }
   else{
   JFrame f=new ClerkProfile();
   f.setVisible(true);
   }

}// TODO add your handling code here:
    }//GEN-LAST:event_submitActionPerformed