public Homework_print() {
        initComponents();     
        jPanel1.setBackground(login_area.FINAL_BG_COLOR);
        this.setDefaultCloseOperation(0);
                Timetable_main_RWRAF.read(0);
        if(Timetable_main_RWRAF.getLength() !=0)
        {
             
        List_load list = new List_load();
        list.List_load();
        list.getList();
        
        List_Homework_database list1 = list.getList();
   for(int i=0; i<=Timetable_main_RWRAF.getLength(); i++)
{
    Timetable_main_RWRAF.read(i);
    
    
 if (Timetable_main_RWRAF.checkDelete() == 0)
 {

 jTable1.getModel().setValueAt(list1.get(i+1).getSubject().trim(), n, 0);
  jTable1.getModel().setValueAt(list1.get(i+1).getDeschome().trim(), n, 1);
   jTable1.getModel().setValueAt(list1.get(i+1).getDifficulty().trim(), n, 2);
    jTable1.getModel().setValueAt(list1.get(i+1).getTimetaken(), n, 3);
    if(list1.get(i+1).getSubject() != null)
{
    n+=1;
   
}

 }
 
}
    
         text = list1.print();
    
    }
        else
        {
                           JOptionPane.showMessageDialog(null,"Please add homework first", "Timetable Management Program", JOptionPane.INFORMATION_MESSAGE);
                           
        }
    }