Title: Message
I have added listener like this :-
 
TableSelectionListener tableSelectionListener = new TableSelectionListener();
table.getSelectionModel().addListSelectionListener(tableSelectionListener);
 
 
My listener class :-
 
class TableSelectionListener implements ListSelectionListener {
  public void valueChanged(ListSelectionEvent event) {
   if (event.getSource() == table.getSelectionModel() && table.getRowSelectionAllowed()) {
    int first = event.getFirstIndex();
    int last = event.getLastIndex();
    LogManager.log.debug("Row selection changed = " + first + " " + last);
   }
  }
 }
 
The problem is when I click select a row it calls the listener twice.
 
Thanks & Regards
Bhushan Bhangale
Sr. Software Engineer
Fusion Infotech India Private Ltd.
Ph. no. - 1-212-641-6932 (O)
 


"The information in this e-mail, and any attachment therein, is

confidential and for use by the addressee only. If you are not the

intended recipient, please return the e-mail to the sender and delete

it from your computer. Although The Bank of New York attempts to

sweep e-mail and attachments for viruses, it does not guarantee that

either are virus-free and accepts no liability for any damage sustained

as a result of viruses."


Reply via email to