try {
for (Team t : teamdao.SelectTeam()) {
teamName=t.getName();
group.addTeam(new Team(teamName, teamName));
teams.add(new Team(teamName, teamName));
}
} catch (SQLException ex) {
Logger.getLogger(Group.class.getName()).log(Level.SEVERE, null, ex);
}