new MatchListSelectionHandler());
matchTable.getColumnModel().getSelectionModel().addListSelectionListener(
new MatchListSelectionHandler());
// FIXME: doesn't work right now
matchTable.getColumnModel().getColumn(0).setCellRenderer(new OsmPrimitivRenderer());
matchTable.getColumnModel().getColumn(1).setCellRenderer(new OsmPrimitivRenderer());
matchTable.getColumnModel().getColumn(4).setCellRenderer(new ColorTableCellRenderer("Tags"));
matchTable.setRowSelectionAllowed(true);
matchTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
referenceOnlyListModel = new UnmatchedObjectListModel();
referenceOnlyList = new UnmatchedJList(referenceOnlyListModel);
referenceOnlyList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
referenceOnlyList.setCellRenderer(new OsmPrimitivRenderer());
referenceOnlyList.setTransferHandler(null); // no drag & drop
subjectOnlyListModel = new UnmatchedObjectListModel();
subjectOnlyList = new UnmatchedJList(subjectOnlyListModel);
subjectOnlyList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
subjectOnlyList.setCellRenderer(new OsmPrimitivRenderer());
subjectOnlyList.setTransferHandler(null); // no drag & drop
//add popup menu for zoom on selection
zoomToListSelectionAction = new ZoomToListSelectionAction();
selectionPopup = new SelectionPopup();