public MyJObject(int i) {
      CourseCheckBox = new JCheckBox(DataTransfer.Courses.elementAt(i));
      CourseCheckBox.setForeground(Color.WHITE);
      CourseCheckBox.setFont(new Font("SERRIF", Font.BOLD + Font.ITALIC, 13));
      CourseCheckBox.setHorizontalAlignment(SwingConstants.LEFT);
      CourseCheckBox.setOpaque(false);
      CourseCheckBox.setSelected(true);

      TotalMarks =
          new JLabel(
              Float.toString(
                  Float.valueOf(
                      TwoDecimal.format(Float.parseFloat(DataTransfer.Total.elementAt(i))))),
              SwingConstants.CENTER);
      TotalMarks.setForeground(Color.WHITE);
      TotalMarks.setFont(new Font("SERRIF", Font.BOLD + Font.ITALIC, 13));

      GradePoint = new JLabel(DataTransfer.GradePoint.elementAt(i), SwingConstants.LEFT);
      GradePoint.setForeground(Color.WHITE);
      GradePoint.setFont(new Font("SERRIF", Font.ITALIC, 13));

      LetterGrade = new JLabel(DataTransfer.LetterGrade.elementAt(i), SwingConstants.LEFT);
      LetterGrade.setForeground(Color.WHITE);
      LetterGrade.setFont(new Font("SERRIF", Font.PLAIN, 13));

      CreditLabel = new JLabel(Credit.elementAt(i), SwingConstants.LEFT);
      CreditLabel.setForeground(Color.WHITE);
      CreditLabel.setFont(new Font("SERRIF", Font.PLAIN, 13));

      ExamTypeLabel = new JLabel(DataTransfer.ExamType.elementAt(i), SwingConstants.LEFT);
      ExamTypeLabel.setForeground(Color.WHITE);
      ExamTypeLabel.setFont(new Font("SERRIF", Font.PLAIN, 12));
    }
  private boolean gatherDataForDocument() {
    boolean Flag = false;
    this.Selected = 0;
    DataTransfer.refreshAll();
    for (int i = 0; i < this.NumberOfCourses; i++)
      if (My[i].CourseCheckBox.isSelected()) {
        DataTransfer.Serial.add(Integer.toString(i + 1));
        DataTransfer.Courses.add(My[i].CourseCheckBox.getText());
        DataTransfer.Total.add(My[i].TotalMarks.getText());
        DataTransfer.GradePoint.add(My[i].GradePoint.getText());
        DataTransfer.LetterGrade.add(My[i].LetterGrade.getText());
        DataTransfer.Credits.add(My[i].CreditLabel.getText());
        DataTransfer.ExamType.add(My[i].ExamTypeLabel.getText());
        this.Selected++;
        Flag = true;
      }

    this.Taken = TakenLabel1.getText() + TakenLabel2.getText();
    this.Completed = CompletedLabel1.getText() + CompletedLabel2.getText();
    this.GPA = GPALabel1.getText() + GPALabel2.getText();

    return Flag;
  }