public void actionPerformed(ActionEvent e) {
   ViewRegisteredPatients vp = new ViewRegisteredPatients("new");
   vp.setVisible(true);
   ViewRegisteredPatients.hasNew = false;
 }
 public void actionPerformed(ActionEvent e) {
   ViewRegisteredPatients vp = new ViewRegisteredPatients("all");
   vp.setVisible(true);
 }