Hi, In JTable, when you click on a cell, ListSelectionEvent is raised, for which valueChanged(ListSelectionEvent) is being executed. I observed, after a click, valueChanged method getting excuted twice, is there any other way in API, by which we can have some function getting executed only for a single time ?
Manfred Leonhardt
Ranch Hand
Joined: Jan 09, 2001
Posts: 1492
posted
0
Hi Shivaji, No, but you can use the method: getValueIsAdjusting to make sure you only perform your function once. if( !getValueIsAdjusting() ) { // Do your stuff here. } Regards, Manfred.