private void doSaveNewEx(){
        int id;
        
        if( docName.getText().length() == 16 && patName.getText().length() == 16 && bYear.getText().length() > 0 &&
                bMonth.getText().length() > 0 && bDay.getText().length() > 0 ){
            MainPanel.currEx.setDoctor(docName.getText());
            MainPanel.currEx.setPatient(patName.getText());
            MainPanel.currEx.setDate(bYear.getText()+"-"+bMonth.getText()+"-"+bDay.getText());
            
            if (notes.getText().equals("Inserisci qui le tue note.")) MainPanel.currEx.setNotes("-");
            else MainPanel.currEx.setNotes(notes.getText());
            
            MainPanel.currEx.setDisease(disList.getSelectedItem().toString());
            id = MainPanel.currEx.sendData();
            
            if( id == -1 ) GuiController.taskFail(errLabel2);
            else{
                MainPanel.currEx.setID(id);
                GuiController.showAttPanel();
            }
        }
    }