I det här fallet fyller du i kombinationsrutan i databasen.
public void loadComboStudent() {
AutoCompleteDecorator.decorate(this.jCStudent);
StudentDao studentDao = new StudentDao();
List<Student> listaStudents = studentDao.consultarStudents();
for (Student set : listaStudents) {
jCStudent.addItem(set);
oc.save(set );
}
}
spara den här listan Studenter i databasen.