Open main menu

CDOT Wiki β

Changes

no edit summary
}
</pre>
3.9.Add the method that creates lists of students: <pre> private Vector getFromList() { Vector students = new Vector(); students.addElement(new Student("Anastasia", "Semionova", "asemionova1@learn.senecac.on.ca")); students.addElement(new Student("Minoo", "Ziaei", "minoo.ziaei@senecac.on.ca")); students.addElement(new Student("Ladan", "Zadeh", "lzahiroleslamzadeh@learn.senecac.on.ca")); students.addElement(new Student("Sergiu", "Ecob", "secob@learn.senecac.on.ca")); return students; }  /** * Adds a new element and updates the student list. * @param str The string to be added to the element list. */ void addElementToList(Student student) { _studentList.addElement(student); _keywordFilterField.updateList(); } </pre>3.10. Add the method to access the <code>KeywordFilterField</code> object: <pre> KeywordFilterField getKeywordFilterField() { return _keywordFilterField; } </pre>3.11. Run the application:<br/>[[Image: BB_mainscreen.png | 300px]]
1
edit