placemarksTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
userScrollPane.setViewportView(placemarksTable);
// Listen for changes to the select on the user table and enable/
// disable the Edit/Remove buttons as a result.
ListSelectionListener userListener = new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
boolean isRowSelected = placemarksTable.getSelectedRow() != -1;
editButton.setEnabled(isRowSelected);
removeButton.setEnabled(isRowSelected);