@Override
    public void mouseReleased(MouseEvent me) {
        if (me.getSource() instanceof JMenuItem) {
            JMenuItem menuItem = (JMenuItem) me.getSource();

            if (menuItem.getActionCommand().compareTo("FILE->INSERT") == 0) {
                StudentsInformation.StudentsName(stdname.getText());
                StudentsInformation.StudentsSurname(stdsur.getText());
                StudentsInformation.StudentsAEM(stdaem.getText());
                StudentsInformation.Subject(subject.getText());
                StudentsInformation.Grades(grade.getText());
                try {
                    SaveToFile.WriteFile(stdname.getText(), stdsur.getText(), stdaem.getText(), subject.getText(), grade.getText());
                } catch (FileNotFoundException ex) {
                    Logger.getLogger(MouseInputStudents.class.getName()).log(Level.SEVERE, null, ex);
                } catch (UnsupportedEncodingException ex) {
                    Logger.getLogger(MouseInputStudents.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IOException ex) {
                    Logger.getLogger(MouseInputStudents.class.getName()).log(Level.SEVERE, null, ex);
                }
                ClearFields.Clearing(stdname, stdsur, stdaem, subject, grade);
            } else if (menuItem.getActionCommand().compareTo("FILE->LOGOUT") == 0) {
                System.exit(0);
            } else if (menuItem.getActionCommand().compareTo("HELP->ABOUT") == 0) {
                JOptionPane.showMessageDialog(null, "This project is created with the teamwork of Kostas Korosidis,Thomas Liakos,Giwrgos,Dimitris Bakalis.\n IT's created with NetBeans IDE and the use of Git Hub.", "About Window", JOptionPane.INFORMATION_MESSAGE);
            }
        }

    }