ListSelectionModel lsm2 = (ListSelectionModel) e.getSource();
if (lsm2.isSelectionEmpty()) {
//no rows are selected
} else {
int index = lsm2.getMinSelectionIndex();
EsriGraphicList list = layer.getEsriGraphicList();
OMGraphic graphic = list.getOMGraphicAt(index);
graphic.select();
list.generate(_mapBean.getProjection());
layer.repaint();
}
}
});
frame.setSize(400, 300);