public void checkspaceleft()
        {
            
            File file2 = new File("/Users/");
            
            if(file2.getUsableSpace()<1000)
            {
               JOptionPane.showMessageDialog(null,"Please increase the amount of memory in your hard disk in order for this program to function.", "Timetable Management Program", JOptionPane.INFORMATION_MESSAGE);
                    this.dispose();
            }
        
        }