ListSelectionListener valueChanged fired twice
843805Jun 6 2006 — edited Sep 3 2008public void valueChanged(ListSelectionEvent e) {
if(!e.getValueIsAdjusting()) {
System.err.println("INSIDE THE METHOD.............");
ListSelectionModel lsm = (ListSelectionModel) e.getSource();
}
}
In this method, when I enter a value, it prints the output and again when I change to another row it again prints the output.
Why is this getting fired twice? I just want to get the updated value of a previous row when the user goes to another row. TIA