tabbedPane.addTab(tr("Matches"), matchTable);
tabbedPane.addTab(tr("Reference only"), referenceOnlyList);
tabbedPane.addTab(tr("Subject only"), subjectOnlyList);
conflateAction = new ConflateAction();
final SideButton conflateButton = new SideButton(conflateAction);
// TODO: don't need this arrow box now, but likely will shortly
// conflateButton.createArrow(new ActionListener() {
// @Override
// public void actionPerformed(ActionEvent e) {
// ConflatePopupMenu.launch(conflateButton);
// }
// });
removeAction = new RemoveAction();
// add listeners to update enable state of buttons
tabbedPane.addChangeListener(conflateAction);
tabbedPane.addChangeListener(removeAction);
referenceOnlyList.addListSelectionListener(conflateAction);
referenceOnlyList.addListSelectionListener(removeAction);
subjectOnlyList.addListSelectionListener(conflateAction);
subjectOnlyList.addListSelectionListener(removeAction);
UnmatchedListDataListener unmatchedListener = new UnmatchedListDataListener();
subjectOnlyListModel.addListDataListener(unmatchedListener);
referenceOnlyListModel.addListDataListener(unmatchedListener);
createLayout(tabbedPane, true, Arrays.asList(new SideButton[]{
new SideButton(new ConfigureAction()),
conflateButton,
new SideButton(removeAction)
// new SideButton("Replace Geometry", false),
// new SideButton("Merge Tags", false),
// new SideButton("Remove", false)
}));
}