/** * Sets the completions to display in the choices list. The first * completion is selected. * * @param completions The completions to display. */ public void setCompletions(List<Completion> completions) { model.setContents(completions); selectFirstItem(); }