/*
* BEGIN INTERFACE ListSelectionListener
*/
public void valueChanged(ListSelectionEvent e) {
ListSelectionModel lsm = (ListSelectionModel)e.getSource();
boolean isAdjusting = e.getValueIsAdjusting();
int firstIndex = e.getFirstIndex();
int lastIndex = e.getLastIndex();
if (isAdjusting == false) {
/*
* Query model for selected index and get the object at the
* index.
*/
if (lsm.isSelectionEmpty()) {
/*
System.out.println("nothing selected");
*/
} else {
int selectedRow = lsm.getMinSelectionIndex();
/*
System.err.println("selected row : " + selectedRow);
*/
Object o = model.getValueAt(selectedRow, 0);