JComboBox previousAppearanceListField = new JComboBox();
for (Appearance previousAppearance : travelingSalesmanTour.getVisitList()) {
previousAppearanceListField.addItem(previousAppearance);
}
for (Appearance previousAppearance : travelingSalesmanTour.getDomicileList()) {
previousAppearanceListField.addItem(previousAppearance);
}
previousAppearanceListField.setSelectedItem(visit.getPreviousAppearance());
int result = JOptionPane.showConfirmDialog(TspListPanel.this.getRootPane(), previousAppearanceListField,
"Visit " + visit.getCity().getSafeName() + " after", JOptionPane.OK_CANCEL_OPTION);
if (result == JOptionPane.OK_OPTION) {