// Send the request and print the response
URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/owncalendars/full");
CalendarFeed resultFeed = myService.getFeed(feedUrl, CalendarFeed.class);
DefaultComboBoxModel model = (DefaultComboBoxModel) mCalendarChooser.getModel();
model.removeAllElements();
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
CalendarEntry entry = resultFeed.getEntries().get(i);
String id = entry.getId();
id = StringUtils.substringAfterLast(id, "/");
model.addElement(new GoogleComboboxItem(id, entry.getTitle().getPlainText()));
if (id.equals(settings.getExporterProperty(GoogleExporter.SELECTED_CALENDAR))) {
mCalendarChooser.setSelectedIndex(model.getSize() - 1);
}
}
mCalendarChooser.setEnabled(true);