private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton16ActionPerformed
        // TODO add your handling code here:
        String s = (String) listaElevi.getSelectedValue();
        liceu.Administrator admin = new liceu.Administrator();
        admin.delUser(s);
        
        BufferedReader fisier;        
        try {            
            fisier = new BufferedReader(new FileReader("credentials"));
            ArrayList<String> vector = new ArrayList<>();
            for(String line; (line = fisier.readLine())!= null;){
                vector.add(line);                  
            }
            listModelElevi.clear();
            for(int i=0;i<vector.size();i=i+5){
                if(vector.get(i+4).equals("Elev"))
                    listModelElevi.addElement(vector.get(i));
            }
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Administratorapp.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Administratorapp.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton16ActionPerformed