@Override
    public void actionPerformed(ActionEvent e)
    {
        if(e.getSource() == backButton)
        {
            this.dispose();
        }
        else
        {
            for(int i = 0; i < buttonList.size(); i++)
            {
                if(e.getSource() == buttonList.get(i))
                {
                    for(int j = 0; j < subjectController.getSubjectList().size(); j++)
                    {
                        if(i == j)
                        {
                            subjectController.ShowAlterSubjectView(subjectController.getSubjectList().get(j));
                        }
                    }
                }
            }
        }
    }